I am using the plugin from: cordova-plugin-geolocation. The problem is that if the device has gps disabled, it does not show the map.
I am using the plugin from: cordova-plugin-geolocation. The problem is that if the device has gps disabled, it does not show the map.
You could check if the GPS is activated. This plugin provides methods to know the hardware status of the device: https://www.npmjs.com/package/cordova.plugins.diagnostic
According to the documentation: https://www.npmjs.com/package/cordova.plugins.diagnostic#islocationenabled
you could use this method to show the map in the callback function
successCallback
and show an error message indicating that it is necessary to activate the GPS sensor in order to display the map in the callback functionerrorCallback