You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

geolocation doesn't work with iOS 6 web apps!

The javascript geolocation service doesn't work with iOS 6 web apps. We have a web app that works fine in iOS 5 and it works fine in iOS 6 in Safari. But in iOS 6 if you create a web app by adding clicking on the middle icon at the bottom of Safari and adding the app to your home screen it doesn't work anymore. The geolocation call simply hangs.


I created a really simple test problem. Simply go to http://stroll.nextbus.com/webkit/test.jsp in Safari to try it out. Then create a Home Screen icon for it and click on the icon and you can see that your position is never displayed. You can look at the html to understand this trivial application.


So how does one contact Apple to get them to investigate this issue?


And by the way, we have already gotten a huge number of complaints about this problem!


-- Mike

iPhone 4S, iOS 6

Posted on Sep 19, 2012 8:50 PM

Reply
71 replies

Sep 25, 2012 4:05 AM in response to MikeAtNextBus

MikeAtNextBus, Thanks for posting your test page. We are having the same problem.


I saved your test page to my iPhone 5 / iOS 6 home page. I launched it many times. 50+.


I received the following (good message) 66% of the time.


Here is the content:

Got position lat=xx.xxxxxx lon=-xx.xxxxxx timestampt=xxxxxxxxxxxx


I received the following (bad message) 34% of the time.


Here is the content:

initial content


Has anyone made any progress on this? Apple?


Is there a ticket open?

Sep 27, 2012 7:47 AM in response to Ecasasin

That may be true, but it's an unacceptible solution. I really don't feel like putting this on my webapp.


"Dear Viewer, due to a flaw in iOS6, in order to play our geocaching game you have to go to settings, click around for 10 minutes fiddle with it until you get it exactly right, then you can play.... or just trade in your iPhone 5 for an iPhone 4s and it works out of the box"

Oct 26, 2012 9:22 AM in response to MikeAtNextBus

I am having what I think is a similar problem - I'm not a developer so I will not get the technical terminology correct but here's what I'm expiriencing


we have an HTML5 app that is using the geolocation api

the app is meant to run on an iPad

that app has been saved to homescreen

it has a function that allows the user to click a button and return location and time

the first time user clicks it works

the second time it just hangs with spinning wheel


if I restart the app - same thing, first time fine, second time just hangs


I can replicate the problem on safari 6.0.1 on OSX 10.8.2 on a MBP


I'm pretty sure my location settings "e.g. localization" from other posts are correct in iOS


-Matt

geolocation doesn't work with iOS 6 web apps!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.