Geolocation not working in iPhone simulator
Hi. The app I was developing, which utilises geolocation, was working fine. I then upgraded to the latest version of Titanium (1.7.2) and now I cannot get geolocation working when testing on the app but it works fine if I install it on my iPhone - in addition, it doesn't work in the KitchenSink example now as well (says that GPS needs to be enabled in the settings). I'm building for version 4 of iPhone and to be clear, I didn't change my code - one day it was working, then I upgraded and the geolocation was disabled and unable to be used on the simulator.
I've tried deleting the project and rebuilding but it doesn't make a difference. Help please?
Cheers.
6 Answers
-
If you are running Xcode 4.1 and are using OSX Lion, this is a known issue for Apple. This is an issue for all devs using iOS native, Titanium, or otherwise.
-
Try resetting the simulator. Go to the menu bar to iOS Simulator, then reset Content and Settings.
-
Thanks for your suggestion but it made no difference (on KitchenSink I still get the message saying Geolocation is turned off and I should turn it on).
-
Hi. Yes it is enabled but there is no apps listed underneath (and I thought apps that recently requested a location would appear here).
-
Just installed xcode 4.2 on Lion, problem is still not fixed.
-
check that you have not disabled Location Services in your Settings, Goto "Preferences -> Security" on your computer