How to prevent double prompt for geolocation in Phonegap app?

前端 未结 4 1737
悲哀的现实
悲哀的现实 2020-12-30 12:10

I created a PhoneGap app for iPhone that uses geolocation via JavaScript inside webview.

When I run the app the first time, it\'ll prompt me to allow geolocation for

4条回答
  •  时光说笑
    2020-12-30 13:01

    Have a look at this: Location permission alert on iPhone with PhoneGap

    The second one seems to be the Webkit alert. In order to prevent this, you seem to have to simply move all your js files to the root directory. Tell me, if it works since I'll have to address the same issue soon.

提交回复
热议问题