guyromb / cordova-open-native-settings

Plugin to open native screens of iOS/android settings (maintained, end-2020)
http://gsrweb.net
MIT License
113 stars 107 forks source link

how to check if gps is enabled? #31

Closed YeisonVelez11 closed 6 years ago

YeisonVelez11 commented 6 years ago

How can to go to the native settings to check if gps is enabled or not? thanks!

guyromb commented 6 years ago

@YeisonVelez11 I don't think it is relevant to here. You should prompt the user to enable GPS/permissions, and based on success/failure you can receive this information. This plugin allows you to open the phone settings to enable it and that's it.