Is there a function on CLLocationManager
or UIApplication
to revoke location permission that is similar to the function unregisterForRemoteNotifications
to revoke the push notification permission?
The stopUpdatingLocation
function on CLLocation does not revoke the permission.
Once a user has granted (or denied) location permissions by responding to the original permission request dialog, the only way that the permissions can be changed is by the user themselves using the device settings app.
You can just not use location services even though your app still has permission to do so.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.