iphone – 弹出窗口,在ipad中显示用户当前位置两次

我正在使用sencha touch 2框架来构建我的应用程序.问题是我在应用程序中显示地图,弹出窗口在ipad中显示两次.理想情况下,弹出的位置预计会显示一次,我可以知道任何设置是触发此弹出窗口两次,或者是他们通过sencha触摸框架的任何编码更改已触发此事件. 最佳答案 我遇到了类似的问题.我在phonegap wiki上找到了以下可能对您有帮助的信息.

http://wiki.phonegap.com/w/page/16494770/FAQ

有趣的是:

The latest solution for iPhone OS 4.x and PhoneGap 0.9.x is to follow
the example of the docs for and add an event listener that waits for
the device to be ready, otherwise the native navigator.geolocation is
used and you get an alert like this
:
“var/mobile/Applications/UUID/appname.app/www/index.html” Would Like
To Use Your Current Location.

点赞