KorryRogers
Posts: 0
Joined: Fri Aug 15, 2014 2:53 am

Map Asks for Permission Every Time It's Opened

I've been working on an app using Google Maps. For some reason I keep getting the pop up (see image) every time I load the map. This comes up after the app asks for permission to use my location. This is only happening when I build and install the iOS app natively. Any help is appreciated.
Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Map Asks for Permission Every Time It's Opened

Hi Korry -

Could you please clarify, how and on what page event you're invoking Geolocation service?
In most cases such behavior occurs when you invoke Geolocation service several times on page.

KorryRogers
Posts: 0
Joined: Fri Aug 15, 2014 2:53 am

Map Asks for Permission Every Time It's Opened

I run initialize(); on page load.

KorryRogers
Posts: 0
Joined: Fri Aug 15, 2014 2:53 am

Map Asks for Permission Every Time It's Opened

Here's a little more info...

My default page has a map on it that on load, pulls your GPS location and puts a marker on the map.

On the web, it works fine every time. That permission message never shows up.

In the Appery tester, it will prompt for permission on the first 2 loads. When you grant it permission, your GPS marker shows up and everything works fine. After 2 times, the permission prompt doesn't pop up, and it doesn't show your location or marker.

Natively: it prompts for permission on the first 2 installs, and everything works properly. After that, your GPS isn't shown on launch, but it does show after coming back to the page.

Odd.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Map Asks for Permission Every Time It's Opened

Try invoking this service on Device ready event.

Return to “Issues”