UIWebView (iphone) loading Google Maps, keeps asking for permission to use users location

590 views
Skip to first unread message

Loek Wetzels

unread,
Aug 9, 2011, 4:59:48 AM8/9/11
to google-map...@googlegroups.com
Hi there,

I've created a simple iPhone app which basically is a UIWebView showing a webpage. On this webpage I'm loading a googlemap using the v3 API.

Everytime I open the app I get a popup:
"<url_of_my_site>" Would Like to use Your Current Location
[Don't Allow] [OK]

Is there any way I can save this user preference?
This webpage is also used on other platforms (Android e.g.) so rebuilding this (iPhone) app and using a UIMapView is not really an option (as there is no budget).

Thanks!

Andres Ferrate

unread,
Aug 9, 2011, 6:31:43 PM8/9/11
to google-map...@googlegroups.com
Have you actually accepted by pressing OK?  It may prompt you once or twice, but after that it should remember that you granted access.

-Andres


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/fradIxotkcsJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Loek Wetzels

unread,
Aug 11, 2011, 3:40:12 AM8/11/11
to google-map...@googlegroups.com
Yes I pressed OK a few times ;)

The problem is that this preference is not saved (by default?) because a webpage loaded in UIWebView is asking for permission, NOT the app itself.
Is there maybe someway I can pass the location (requested by the app) to the webpage (without reloading)?
Reply all
Reply to author
Forward
0 new messages