Location alert in hybrid app shows internal file path
| Originator: | jlieske | ||
| Number: | rdar://7030006 | Date Originated: | 02-Jul-2009 10:51 PM |
| Status: | Open | Resolved: | |
| Product: | iPhone | Product Version: | 3.0 |
| Classification: | UI/Usability | Reproducible: | Yes |
Summary: When a user first uses the geolocation feature of an app, the iPhone OS displays a dialog asking the user if they want to allow the app to use their current location. Normally this displays the name of the application. However, when JavaScript in an hybrid application accesses navigator.geolocation, the alert gives the Unix path of the containing HTML file. Steps to reproduce: Create an iPhone application that uses UIWebView to display HTML. Create an HTML file for embedding within the app bundle. Add a button to the HTML that calls navigator.geolocation.getCurrentPosition(). Launch the app on the phone for the first time. Expected results: An alert appears: "Have2P" would like to use your current location Actual results: An alert appears: "/var/mobile/Applications/C4B961D6-E388-4BAC-99AD-D22022723FD30/Have2PG.app/www/index.html" would like to use your current location Regression: This occurs in both the iPhone Simulator and an iPhone running OS 3.0.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!