[英]Request user again for location permission, when it is already accepted by user ios
I have an app which is using location service, and some users are already accepted it, but the condition I have here is I want to ask them again now with a condition that if the location is required then only they have to accept it. 我有一个正在使用位置服务的应用程序,并且已经接受了一些用户,但是我在这里的条件是我现在想再次询问他们,条件是如果需要位置,则只有他们必须接受它。 So, "is there any way to ask user again for the permission when I am giving them a new app update". 因此,“当我向他们提供新的应用更新时,是否有任何方法可以再次向用户询问权限”。
You cannot force the OS prompt for location permission to happen again if it was already accepted. 如果已经接受,则不能强制操作系统提示再次进行位置许可。 One alternative may be to pop a custom dialog, and if the user does not want location to be used anymore, instruct the user to turn it off in iOS app settings, or alternately add logic to simply not use location if the user has made this choice. 一种选择是弹出自定义对话框,如果用户不想再使用位置,则指示用户在iOS应用设置中将其关闭,或者添加逻辑以简单地不使用位置(如果用户已这样做)选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.