louisbl / cordova-plugin-gpslocation

Native GPS Location for Cordova - Android
Apache License 2.0
20 stars 25 forks source link

watchPosition error "Position retrieval timed out" #9

Open marcoas opened 6 years ago

marcoas commented 6 years ago

(Translated by Google)

Hello

The same code works for me on several phones, but NOT on the Samsung J2 (Android 5.1.1)

Any ideas?


    this.watchID = GPSLocation.watchPosition( this.GPSleido.bind( this ),
                                              this.GPSerror.bind( this ),
                                              { maximumAge: 10000,
                                                // frequency : 30000,
                                                timeout : 30000,
                                                enableHighAccuracy: true });

I did tests with enableHighAccuracy on TRUE and FALSE, timeout on 3000, 10000, 30000

kPlusPlus commented 5 years ago

and me also