The situation: I actually develop an app with a track & share function. If the user has enabled the tracking option he should test the GPS connectivity before he starts to track. You can see the code in the attached PNG graphic, the alert-placeholder should be replaced with the check function. I've seen on github and stackoverflow some ways to check - if you can grab the GPS Error-Code. Cordova "device" and "geolocation" is already installed on the project, gps is working too. Your Job: Provide a Code Snippet which checks on iOS and Android if the GPS is enabled. If not: tell the User to enable GPS and open the device settings if possible. If the GPS is already on, do nothing.