So, found new problem:
checking navigator.geolocation get OK, but
navigator.geolocation.getCurrentLocation don't work.
function start , but don't return anything, nor success , nor error nor don't support.
But code work fine in simulator.
Don't work in AppPreview .
I was created some biulds for absolutely new project and for my old working project and :
- They don't get locations in Android 6 , but fine work in Android 5 and 4
Tested in Huawei P9 Lite/Android 6 (2 phones)
Meizu M2Note/android 5
samsung S3 Neo ( Android 4.4)
After upgrading from android 5 to Android 6 Waze freeze GPS invokation ... (but Google Maps still work ) another apps (like weather and so on) don't locate with GPS
after Waze full reinstallation GPS start work and plugin also .....
may be it will help somebody
Try using the "hello cordova" test app to experiment with geolocation. It rarely works the way you think it should work and is very dependent on the device you are using, the geolocation settings on that device, and geo permissions. Build the "hello cordova" app and install it on several different devices and you'll see what I mean.