katzer / cordova-plugin-background-mode

Keep app running in background
Apache License 2.0
1.38k stars 1.02k forks source link

Problem GPS in Android 4.2.2 #253

Open PCRefresh opened 7 years ago

PCRefresh commented 7 years ago

I am creating an app in Android/CrossWalk

In Android 4.2.2 it's impossible to use GPS. in later versions I have problem only in background that work out with "disableWebViewOptimizations"

In 4.2.2 this not have effect in background and in foreground. I read GPS only once and never again.

How can I solve this problem?

katzer commented 7 years ago

@PCRefresh If disableWebViewOptimizations does not help in 4.2 then there's no (I have no) solution for it. In that case its better to use a native GPS-plugin instead of the HTML5 API.

PCRefresh commented 7 years ago

It's just what you say! I removed the plugin and the problem is present.

The problem is pedestrian and navigator.geolocation strips. Now I test intel.xdk.geolocation (deprecated) only for 4.2.2