views:

269

answers:

3

My app uses the location service. To test what is happening when the user presses 'Don't allow' when the simulator asks for the permission to access the location service (when the app is started for the first time) I need to reset the simulator. This because the question was answered at the beginning of the development process with allow. So no more questions are asked.

Reseting the Simulator with "Reseting Content and Settings.." don't bring back the question at the start. What I am doing wrong?

thx in advance

A: 

Are you using the Beta iPhone OS 4.0? If so, it could highly be a bug. Check with other SDKs.

medopal
Yes, I am on OS4.0 SDK. Will give it a try. Thx
Stefan Mayr
No sorry, same when starting it with the Simulator of SDK 3.
Stefan Mayr
A: 

I thought this was a very good question as I couldn't remember the last time the simulator asked me to allow access to my current location.

I just installed two of the sample apps from Apple that use the CoreLocation framework, I have never used either of them before. I installed them both on the simulator and I never got asked for permission to use my current location at all.

I tried it with SDK v3 and v3.1.2

acqu13sce
Hmm, I think you are right. There seems to be no such message when trying it in the simulator. I was really sure there was one but you are right! Thanks!
Stefan Mayr
A: 

If you're using Snow Leopard:

Go to your mac's System Preferences (not the simulator's), Select the Security section. Hit the "Reset Warnings" button in front of Location Services, you're all set.

Stephane JAIS