Page 1 of 1

Map Asks for Permission Every Time It's Opened

Posted: Fri Oct 16, 2015 5:22 pm
by KorryRogers

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


Map Asks for Permission Every Time It's Opened

Posted: Fri Oct 16, 2015 6:38 pm
by Illya Stepanov

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.


Map Asks for Permission Every Time It's Opened

Posted: Fri Oct 16, 2015 6:43 pm
by KorryRogers

I run initialize(); on page load.


Map Asks for Permission Every Time It's Opened

Posted: Fri Oct 16, 2015 9:33 pm
by KorryRogers

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.


Map Asks for Permission Every Time It's Opened

Posted: Sat Oct 17, 2015 2:04 pm
by Illya Stepanov

Try invoking this service on Device ready event.