Nick
Posts: 0
Joined: Wed Jul 24, 2013 7:28 am

Geolocation ask for permission iOS

Hello,
I am developing an application which needs the location of the user in order to function properly.
I have no problems with the geolocation and so on but i have a question regarding the iphone build.

When i start the app on any iOS device (tested on iPad iOS 7 and iPhone iOS 6) i get a confirm alert which asks permission to get my current location. All good till here.
When the first page is loaded (which has the geolocation service on page load), another popup comes up, asking for permission, saying:

"/var/mobile/Applications/D76ADCE1-...-AD^/appname.app/www/project/login_screen.html" Would Like To Use Your Current Location

Is there any way to avoid this popup? Or at least change the message to:
"Appname Would Like To Use Your Current Location"
as it is on the first app load?

Thank you in advance.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Geolocation ask for permission iOS

Hello! Working on it, I'll update.

Nick
Posts: 0
Joined: Wed Jul 24, 2013 7:28 am

Geolocation ask for permission iOS

Thank you :)

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Geolocation ask for permission iOS

Please try to invoke Geolocation service on Device ready event instead Load.

Nick
Posts: 0
Joined: Wed Jul 24, 2013 7:28 am

Geolocation ask for permission iOS

It works, thanks ! You are awesome

B510
Posts: 0
Joined: Wed Jun 04, 2014 2:17 pm

Geolocation ask for permission iOS

Hi.. I am facing the same problem on iOS 8 and I already invoke geolocation service on DeviceReady event.. but the problem still occurs..

setTimeout(geolocation1.execute(),500000);

please help

Image

Return to “Issues”