What are the rules behind “X would like to use your current location” on the iPhone?

主宰稳场 提交于 2019-12-03 02:17:19
  1. Yes, it will always ask you twice. Kind of weird and unintuitive imho. It's my understanding that this is in case you hit the wrong button the first time. After that it assumes you know what you wanted.

  2. I found the following in the LocateMe example:

    "Don't Allow" on two successive app launches is the same as saying "never allow". but I've also read that other folks are seeing the same behavior that you are. Maybe a change in recent OS update? Anyways, your approach sounds reasonable.

  3. I don't believe that you can reset for only one app, sorry.

You can now set or unset for one app in the settings, under General, Location Services. Probably introduced in 4.0?

And if you are a registered developer, you could check the API diffs for the latest beta. They might have improved error handling.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!