开发者

LocationManager problem after updating the application in iphone

I am using LocationManger class to get user's current location. When i install application from App store and run applic开发者_StackOverflow中文版ation first time application ask me that " APP would like to use your current location." followed by "Don't Allow" and "Ok" button. At this point of time application works fine.

Now I uninstall application and reinstall the same application from App store. Now when i tried to run application, it doesn't prompt me same location dialog and also Location Manager failed to retrieve the location with kCLErrorDenied error.

I also tried with two other application on App store, same problem happened.

Anyone has idea about this behaviour?? How to retrieve user's current location in this situation?

Thanks, Jim.


If the user has denied you access to your location, they have to go into the settings menu -> General -> Location services and choose your app from the list there.

Until they do that, your app won't have access to the GPS. Sorry!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜