I doubt this is the issue, but still perhaps worth noting: iOS4 has a new "Cellular Data" (under Settings > General > Network) -- you'll want to be sure it's turned on if you're trying to use Google APIs or other internet functionality and you're not on wifi...
-- peter -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of alexg Sent: Wednesday, June 23, 2010 8:06 AM To: iPhoneWebDev Subject: Re: Issues with Geolocation in Mobile Safari (iOS 4) I believe pre-iOS4, mobile safari did not support the additional timeout parameter in geolocation calls correctly. Make sure your code does not contain a timeout of 0 - while OS 3.1.3 would ignore this value and your app would work, iOS4 now correctly applies it (as far as I can tell). Either set a timeout of something other than zero, or remove the parameter and let the browser set the default timeout period. I encountered this in one of my apps after upgrading to iOS4, and changing this fixed it instantly. Regards, Alex On Jun 23, 2:36 am, Scott Finkelstein <[email protected]> wrote: > Has anyone here noticed iOS4 breaking their Geolocation web apps? I > have a page on our web app that plots the users location on a Google > Map (via the "navigator.geolocation" and "geo_position_js" APIs, > depending on the user agent). It worked perfectly in iPhone OS 3.1.3, > but once I updated to iOS 4 I've been getting a "Timeout Expired" > error message. It worked on my colleague's phone (she didn't update to > iOS 4 yet) and it also worked on my Desktop via Safari 5. > > Thanks in advance, > > - Scott -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en. -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
