Reset Permissions like Camera for iOS Apps?
Settings > General > Reset > Reset Location & Privacy. This will reset all location, camera and microphone permissions. It cannot be done on a per app basis.
Settings > General > Reset > Reset Location & Privacy. This will reset all location, camera and microphone permissions. It cannot be done on a per app basis.
I faced the same issue and I was able to resolve it because I noticed that the InfoPlist.strings wasn’t member of any target. So setting the Target Membership on the file (which puts it into the Copy Bundle Resources build phase) fixed it. And for anyone googling here: https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/AboutInformationPropertyListFiles.html Scroll down to “Localizing Property List … Read more
No, this is a system dialog which cannot be customized.
You can’t reset the permission programmatically. If you want to reset the permission there are two ways: Reset the OS Uninstall the app and wait for a day I know both of those options are really not helpful for a developer, if they are trying to test it out something. There are three alternatives for … Read more
Here is the approach we ended up using: if ([AVCaptureDevice respondsToSelector:@selector(requestAccessForMediaType: completionHandler:)]) { [AVCaptureDevice requestAccessForMediaType:AVMediaTypeVideo completionHandler:^(BOOL granted) { // Will get here on both iOS 7 & 8 even though camera permissions weren’t required // until iOS 8. So for iOS 7 permission will always be granted. if (granted) { // Permission has been granted. … Read more
Check the AVAuthorizationStatus and handle the cases properly. NSString *mediaType = AVMediaTypeVideo; AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:mediaType]; if(authStatus == AVAuthorizationStatusAuthorized) { // do your logic } else if(authStatus == AVAuthorizationStatusDenied){ // denied } else if(authStatus == AVAuthorizationStatusRestricted){ // restricted, normally won’t happen } else if(authStatus == AVAuthorizationStatusNotDetermined){ // not determined?! [AVCaptureDevice requestAccessForMediaType:mediaType completionHandler:^(BOOL granted) { … Read more
After iOS 10 you have to define and provide a usage description of all the system’s privacy-sensitive data accessed by your app in Info.plist as below: Calendar Key : Privacy – Calendars Usage Description Value : $(PRODUCT_NAME) calendar events Reminder : Key : Privacy – Reminders Usage Description Value : $(PRODUCT_NAME) reminder use Contact : … Read more