询问用户是否想要使用定位服务
“询问用户是否想要使用定位服务”的过程是如何工作的?
我在此处读到一个对话框安装时出现,询问用户是否允许定位服务。这是否意味着开发者无需做任何事情,因为用户可以在设置中更改此行为?那么没有“询问对话框”可以实现并且没有存储在系统设置中?该应用程序是否需要一个可以更改此行为的设置菜单?
如果我想在我的应用程序中使用这样的设置菜单怎么办?
开发人员唯一需要注意的是检查他的代码是否允许?请参阅此处 。
How does the process of "asking if user wants to use Location Services" work?
I read here that a dialog at the installation appears, which asks the user if Location Services should be allowed or not. Does it mean that there is nothing to do for the developer, because the user can change this behavior in settings? So there is no "asking dialog" to implement and no storing in system settings? Does the app need a settings menu where this behavior can be changed?
What is if I want such a settings menu in my app?
The only thing the developer has to be aware of is to check in his code if it is allowed or not? See here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来很合理不是吗?是的,就是这样。无需您自己实现对话框,iOS 会为您管理。
用户可以在“设置”/“通用”/“位置服务”中更改设置。
Sounds reasonable isn't it ? Yes, that's it. No dialog to implement yourself, iOS manages that for you.
The user can change the settings in Settings/General/Location Service.