ios-permissions

Android like permissions in iOS

二次信任 提交于 2019-12-03 23:37:23
问题 In android, you define permissions for gps, sms sending, location , .., in the manifest file. Is there anything similar in the iOS, so the user would know what capabilities of the phone some app uses before installation? Or is the user warned during app use when some function wants to use something (e.g. gps, sms...)? 回答1: In iOS you declare your application requirements in its manifest-like Info.plist . But this information is not used to ask user permission, only for ensuring device

iOS Push Notification Settings - Denied Permission vs Permission Never Requested

▼魔方 西西 提交于 2019-12-03 05:45:45
问题 Is it possible to differentiate between the cases where an iOS user has explicitly denied user notification permissions, and an iOS user has never been prompted for permission? My situation: In the past, I've prompted for user notification permission, but never kept track of requests myself. Later, I stopped attempting to register any notification settings. Now, I'd like to re-introduce user notifications. After a significant event in the App, my plan is to display some sort of UI that

Customizing the iOS permission dialog for push notifications

微笑、不失礼 提交于 2019-11-29 01:03:19
When an iOS app attempts to register for push notifications for the first time, the system pops up a permissions dialog asking the user for permission to receive push notifications. Is it possible to customize the text of this dialog, to explain why these permissions are being sought? No, this is a system dialog which cannot be customized. One workaround that I have seen involves an app bringing up its own custom dialog explaining why it needs a permission. Then immediately afterwards the app requests the permission, bringing up the system dialog. This may be suitable for convincing a user to

Complete list of iOS app permissions

牧云@^-^@ 提交于 2019-11-28 08:20:17
Different web sites ( e.g. ) explain that the iOS permission model works like this: All apps have a set of basic permissions (including Internet access). If an additional permission is required during runtime the user is asked whether to grant or deny it. Which permissions does iOS know? What belongs to the basic permissions set? What can be done without user consent? Basically I am looking for a list similar to this one , just for iOS In contrast to other answers, there is an official list of permissions that are asked at runtime. It is in the iOS Security Guide (p. 84): iOS helps prevent

iOS permission Alerts - removing or suppressing

ε祈祈猫儿з 提交于 2019-11-27 20:48:53
I have a simple app running on ios simulator which will (at some point in the app), prompt the user to authorize the following: Location setting Address contact book Pictures/Albums Because I am doing automation testing on the iOS simulator (several thousand on virtual machines), is there a way to force iOS simulator to have these permissions already set to yes when the app is installed? I vaguely remember there was a way to manipulate this using a plist file associated with iOS simulator, but I'm not 100% sure if "its all in my head". I'm not finding much on google. There's some discussion

iPad remembering camera permissions after delete—how to clear?

与世无争的帅哥 提交于 2019-11-27 17:48:43
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. You can't reset the permission programmatically. If you want to reset the permission there are two ways: Reset the OS Uninstall

iOS Calendar Access Permission Dialog, force it to appear?

一笑奈何 提交于 2019-11-27 08:01:23
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't want to do that every time I test.) Does anyone know how to force this to appear? Thanks. Settings >

Presenting camera permission dialog in iOS 8

▼魔方 西西 提交于 2019-11-27 02:53:40
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? jamix Here is the approach we ended up using: if ([AVCaptureDevice respondsToSelector:@selector

Complete list of iOS app permissions

a 夏天 提交于 2019-11-27 01:56:32
问题 Different web sites (e.g.) explain that the iOS permission model works like this: All apps have a set of basic permissions (including Internet access). If an additional permission is required during runtime the user is asked whether to grant or deny it. Which permissions does iOS know? What belongs to the basic permissions set? What can be done without user consent? Basically I am looking for a list similar to this one, just for iOS 回答1: In contrast to other answers, there is an official list

iOS permission Alerts - removing or suppressing

淺唱寂寞╮ 提交于 2019-11-26 20:27:49
问题 I have a simple app running on ios simulator which will (at some point in the app), prompt the user to authorize the following: Location setting Address contact book Pictures/Albums Because I am doing automation testing on the iOS simulator (several thousand on virtual machines), is there a way to force iOS simulator to have these permissions already set to yes when the app is installed? I vaguely remember there was a way to manipulate this using a plist file associated with iOS simulator,