Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Ugly location warning dialog in iPhone webview

I have a Ti.UI.WebView in my Titanium application. Inside the web view I'm embedding a Google map. To get the user's current location I use the W3C method 'navigator.geolocation.getCurrentPosition'.

This call triggers the iPhone's built-in location warning dialog, but the name displayed in the dialog is not very user-friendly. For my application, the dialog says:

> "app://com.my.application.id" Would Like To Use Your Current Location

Where 'com.my.application.id' is the Application ID in the Titanium project settings. Is there a way to get this warning dialog to display my application's name instead?

— asked July 12th 2010 by Carmen Wick
  • iphone
  • webview
0 Comments

1 Answer

  • Accepted Answer

    A solution would be to use native geolocation and pass it to the webview using events.

    — answered July 12th 2010 by Dan Tamas
    permalink
    1 Comment
    • I figured I might have to do something like that. I'm now using Ti.Geolocation and passing in the lat/long with Ti.App.fireEvent

      — commented July 12th 2010 by Carmen Wick
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.