简体   繁体   English

当用户ios已接受位置权限时,再次请求用户

[英]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.

相关问题 当用户第一次被拒绝时,再次请求 iOS 人脸 ID 权限 - Request iOS face id permission again when it was denied first time by user 在 SwiftUI 中请求用户位置权限 - Request User Location Permission In SwiftUI 当mapView执行时,要求用户使用iOS访问其位置的权限 - Asking user permission for accessing their location with iOS when mapView does iOS-以编程方式拒绝对联系人的许可(在用户接受之后) - iOS - programatically rejecting permission to contacts (after user has accepted) RN Firebase-如何检查用户是否接受了IOS上的通知权限 - RN Firebase - How to check if the user accepted the permission for notifications on IOS iOS 13 - 如何检查用户是否已接受蓝牙权限? - iOS 13 - How to check if user has accepted Bluetooth permission? iOS Swift:请求用户位置 - iOS Swift: Request user location Facebook iOS SDK请求权限publish_actions,但用户需要再次输入密码 - Facebook iOS SDK request permission publish_actions, but user need to input password again Cordova iOS 插件不提示用户提供位置权限 - Cordova iOS plugin not prompting user for location permission 用户第一次拒绝后,再次请求位置权限 - Ask for location permission again after user says no the first time
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM