On my android 5.0 phone and on the 7.0 emulator, it’s working good.
But on Android 6 it’s not working when i launch the app with the gps disabled. The Diagnostic.isLocationAuthorized of cordova tells me that it’s authorised, i have after that Diagnostic.isLocationAvailable() that checks if the gps i activated. If not i redirect the user to the settings, then after he activates it, nether the Geolocation.watchPosition or the googleMap.getLocation() manage to get any coordinates.
If open the app with the gps, it’s working fine. I wonder if the fact that the app gets in background mess things up on 6.0.
Any suggestion ?