I created an app for iPhone/iPad that uses geolocation via JavaScript/HTML inside WebView. HTML files and scripts are located in app.
When I tap on geolocation button, i see geolocation message, it states that "/var/mobile/Application/~~~~/App.app/www" wants permission to use geolocation.
That makes sense because iOS probably wants permission to allow geolocation for the app and the browser wants permission.
How can I prevent or change this ugly message?
Here are the screenshot:
i.stack.imgur.com/h6I4x.png
"Load local html files into WebView" sample code:
NSString *htmlPath = [[NSBundle mainBundle] pathForResource:@"index"
ofType:@"html"
inDirectory:@"www"];
NSString *html = [NSString stringWithContentsOfFile:htmlPath
encoding:NSUTF8StringEncoding
error:nil];
[myView loadHTMLString:html
baseURL:[NSURL fileURLWithPath:
[NSString stringWithFormat:@"%@/www/",
[[NSBundle mainBundle] bundlePath]]]];