iphone Location Services code that works on OS 4.1 in appstore

一笑奈何 提交于 2019-11-30 10:51:08

I have found a workaround-Solution: Reset the location warning. (Settings > General > Reset > Reset Location Warnings)

I have seen this occur with apps I have developed when the device has installed a testing version provisioned under a distribution profile and then installs the final version submitted to the app store. The symptom is that Location Services never seems to initialize or ask for permissions and you wind up never being called back with a location or an error to handle.

We have verified that rebooting the device does NOT fix it, but that resetting the location warnings does. In our testing, this only affects devices that ran developer provisioned builds and not 'pristine' devices that only install the App Store build.

I worked through this with the apple help people. Resetting location warning didn't work. Resetting the network didn't work.

Basically, I reset the phone in itunes and set it up as a new phone. The location now works.

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