Skip to content Skip to sidebar Skip to footer

Preventing Annoying HTML5 Geolocation Alerts Inside UIWebView

Whenever an script requests the geolocation using HTML5's geolocation API, the UIWebView asks for a permission to use the iOS location services. This is pretty annoying, specially

Solution 1:

You can always pass the geolocation from your app to the javascript loaded into the WebUIView. Look for 'stringByEvaluatingJavaScriptFromString' in WebUIView?


Post a Comment for "Preventing Annoying HTML5 Geolocation Alerts Inside UIWebView"