A plugin to check location service.
nullsafety 版本请查阅https://github.com/EchoPuda/location_service_check_nullsafety
支持Android和iOS
pubspec.yaml:
location_service_check:
git:
url: https://github.com/EchoPuda/location_service_check.git
import 'package:location_service_check/location_service_check.dart';
bool open = await LocationServiceCheck.checkLocationIsOpen;
await LocationServiceCheck.openLocationSetting;
Android直接打开系统的定位服务, iOS由于ios10开始不支持打开系统详细设置,所以打开应用的设置页。