核心位置未请求用户权限 [英] Core Location not requesting user permission

查看:177
本文介绍了核心位置未请求用户权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试的应用程序在第一次设备启动时询问用户位置。我已卸载应用程序,删除了构建文件夹,并清除了所有目标,但核心位置从未再次请求权限。它刚刚关闭,必须在用户设置中启用。知道为什么用户选择即使在卸载应用程序后也会保持持久性?非常奇怪的行为,担心它可能会让我拒绝为商店。

An application I was testing asked for user location on first device launch. I have uninstalled the application, deleted the build folder, and cleaned all targets, but core location never requests permission again. It is just off and must be enabled in the users settings. Any idea why the users choice would remain persistent even after the application was uninstalled? Very weird behavior, worried it may get me rejected for the store.

推荐答案

没有多少人知道这一点,但卸载应用程序后,该应用程序的文档和首选项仍存储在设备上,这里:

Not many people know this, but after you uninstall an application, that application's documents and preferences are still stored on the device, here:

/var/mobile/Library/Safe Harbor/myappidentifier/Container/

在我看来,这不是苹果的明智之举,因为这可能会带来安全风险,就像你上面解释过的那样。

in my opinion, this was not a wise move by apple, as that could have security risks, as the one you have explained above.

如果重新安装了某个应用程序,iOS会自动将这些首选项复制回相应的文件夹中。这就是你所看到的行为的原因。

If an app is re-installed, iOS automatically copies those preferences back into the appropriate folder. That is the cause of the behavior you are seeing.

这篇关于核心位置未请求用户权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆