Ugly geolocation message, using WebView

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]]]];

Up

Up

I'm stuck at the same problem,

will appreciate the solution!

I have the same problem, somethimes I have all the path, sometimes just "/", I would like to have the app name or at least all the path.

There is any solution?

Ugly geolocation message, using WebView
 
 
Q