ios-permissions

Detect permission of camera in iOS

女生的网名这么多〃 提交于 2019-11-26 17:13:57
I am developing a very simple video app. I use the official control: UIImagePickerController. Here is the problem. When presenting the UIImagePickerController for the first time, the iOS will ask for the permission. The user can click yes or no. If the user clicks no, the control is not dismissed. Instead, if the user keeps clicking the start button, the timers go on while the screen is always black, and the user can't stop the timers or go back. The only thing the user can do is to kill the app. The next time the UIImagePickerController is presented, it is still a black screen and the user

iOS Calendar Access Permission Dialog, force it to appear?

醉酒当歌 提交于 2019-11-26 13:57:20
问题 I've written an app that requests access to the iPad's calendar. Under iOS 6, a system dialog appears that asks the user if that's okay. Problem is, I can't replicate that situation once it's happened. For testing purposes, I want to force that dialog to come up consistently. Instead, the OS caches previous settings and doesn't bring up the dialog again. This is still the case even if I delete the app off the iPad and re-install. (Changing the app name and bundle fixes the problem, but I don

iPad remembering camera permissions after delete—how to clear?

廉价感情. 提交于 2019-11-26 12:08:24
问题 I\'m trying to recreate the condition where the following code returns AVAuthorizationStatusNotDetermined : AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]; However, the iPad appears to remember camera permissions even after the app is deleted and reinstalled, and so either Authorized or NotAuthorized is returned every time. Any idea how to reset the permissions so that NotDetermined is returned? Thanks for reading. 回答1: You can't reset

Presenting camera permission dialog in iOS 8

怎甘沉沦 提交于 2019-11-26 10:15:32
问题 When my app tries to access the camera for the first time on iOS 8, the user is presented with a camera permission dialog, much like the microphone one for microphone access in iOS 7. In iOS 7, it was possible to invoke the microphone permission dialog beforehand and see if the permission was granted (see this question, for example). Is there a similar way to invoke the camera permission dialog in iOS 8? Can the dialog be combined for microphone AND camera access permission? 回答1: Here is the

NSCameraUsageDescription in iOS 10.0 runtime crash?

让人想犯罪 __ 提交于 2019-11-26 06:56:26
问题 Using iOS 10.0 last beta. I had tried to use Camera to scan barcode in my app, and it crashed with this runtime error. This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app\'s Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data. Put this key into the plist, but it still crashed? 回答1: After iOS 10 you have to define and provide a usage description of all the

Detect permission of camera in iOS

跟風遠走 提交于 2019-11-26 05:18:08
问题 I am developing a very simple video app. I use the official control: UIImagePickerController. Here is the problem. When presenting the UIImagePickerController for the first time, the iOS will ask for the permission. The user can click yes or no. If the user clicks no, the control is not dismissed. Instead, if the user keeps clicking the start button, the timers go on while the screen is always black, and the user can\'t stop the timers or go back. The only thing the user can do is to kill the