I have an application consists of map, I need to show pins when location is on and when location is turned off I need to hide the pins. I need to implement this in both Android and iOS.
We won't be notified when the user enables/disables the location service of the application. We could only check it programmatically on each platform. For Android:https://stackoverflow.com/questions/843675/how-do-i-find-out-if-the-gps-of-an-android-device-is-enabled/7990939#7990939 For iOS: You can use CLLocationManager.Status Or use a plugin like:https://github.com/jamesmontemagno/PermissionsPlugin
CLLocationManager.Status
@LandLu So you are saying with IOS there is no way to notify the user when location services have been disabled?
Answers
We won't be notified when the user enables/disables the location service of the application.
We could only check it programmatically on each platform.
For Android:
https://stackoverflow.com/questions/843675/how-do-i-find-out-if-the-gps-of-an-android-device-is-enabled/7990939#7990939
For iOS:
You can use
CLLocationManager.Status
Or use a plugin like:
https://github.com/jamesmontemagno/PermissionsPlugin
@LandLu So you are saying with IOS there is no way to notify the user when location services have been disabled?