Users should be warned if Location is disabled as it is needed on Android 6 (M).
- Add app.platform.js for platform specific code
- Check if device.platform is Android and device.version is >= 6
- Use cordova.plugins.diagnostic
- Check isLocationEnabled()
- If not, open dialog by using switchtolocationsettings()
- Add app.platform.js for platform specific code
- Check if device.platform is Android and device.version is >= 6
- Use cordova.plugins.diagnostic
- Check isLocationEnabled()
- If not, open dialog by using switchtolocationsettings()
You need to be logged in to add a comment.