Phonegap Android Geolocation watchPosition timeout

前端 未结 5 1597
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 10:11

I am using Cordova 3.0.0, A Samsung Galaxy S3 4.1.2 to test.

When I test the Phonegap full example for watching position : http://docs.phonegap.com/en/edge/cordova_g

5条回答
  •  离开以前
    2021-01-03 10:42

    Maybe this can help you :

    I just discover one massive problem in Cordova/PhoneGap : - When you open the Android project built by cordova (in commandline), the requestUpdate is set at ..... 60 Seconds !!!!!!!!!!! You have a new Location every Minute ! Evenif you use GPS (enableHighAccuracy="true"). So try to set this at 1000 where you find LocationManager.GPS_PROVIDER in org.apache.cordova.geolocation package -> GPSListener class !

提交回复
热议问题