ios-permissions

__CRASHING_DUE_TO_PRIVACY_VIOLATION__

喜你入骨 提交于 2020-04-09 05:33:26
问题 In Crashlytics, I can see iOS 10 users are getting this crash frequently. However, when I test in Simulator using iPhone 7/10.2, I'm unable to reproduce the crash. In my plist, I already have strings for NSCalendarsUsageDescription, NSMicrophoneUsageDescription, and NSPhotoLibraryUsageDescription. Here is the stacktrace from Crashlytics: Crashed: com.apple.root.default-qos 0 libsystem_kernel.dylib 0x183765d74 __abort_with_payload + 8 1 libsystem_kernel.dylib 0x18376249c <redacted> + 100 2

Customizing the iOS permission dialog for push notifications

随声附和 提交于 2020-01-09 19:36:28
问题 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? Most permission dialog messages can be customized by putting in an NS*UsageDescription Info.plist key. For example the NSCameraUsageDescription key controls what dialog text to display when requesting access to

iOS simulator permission denied and not showing permission alert dialog

偶尔善良 提交于 2020-01-01 05:22:05
问题 I'm working on iOS simulator and am facing issues for requesting permissions. My app was working properly and it could access to photo library, camera and location service. But after installing new XCode (8.1), I run the app on simulator, the app is not allowed to use photo library or camera or location service any more. I tried to ask the permission programmatically, but it did not show permission request dialog and always return denied status even though I added the privacy descriptions and

Removing iOS permission alert for local notifications when running app in simulator

一世执手 提交于 2019-12-31 20:07:29
问题 I'm trying to write an acceptance test in KIF on an app that asks for local notification permissions pretty early on. Unfortunately due to iOS simulator security reasons it isn't possible to automate accepting iOS permission alerts using KIF. Per https://stackoverflow.com/a/28443743/62 it looks like there are ways to disable the permission alerts for location, address book, calendar, and photos, but I couldn't find a way to disable the local notification permission. I tried the entitlement

Testing permissions for microphone / push in iOS app

旧时模样 提交于 2019-12-24 15:01:30
问题 Usually, I was able to test different flows for mic / push permission on iOS by deleting the app and then launching again from XCode. However, recently I am unable to do so because even after deleting the app, when I relaunch the app, instead of asking for permission, it somehow brings back the permissions that I had given to the deleted app. This means it is impossible for me to test alternate flows for asking permission. Has anyone else faced this problem? Can someone guide me to getting

UIImagePickerController not asking for permissions on iOS 9

北城以北 提交于 2019-12-22 05:20:56
问题 I have an iOS app where I present an image picker the self.picker = [[UIImagePickerController alloc] init]; self.picker.delegate = self; self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; self.popover = [[UIPopoverController alloc] initWithContentViewController:self.picker]; [self.popover presentPopoverFromRect:CGRectMake(100, 100, 1, 1) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; The app however doesn't ask for permissions at all,

What is the equivalent of Android permissions in iOS development? [duplicate]

扶醉桌前 提交于 2019-12-11 03:30:01
问题 This question already has answers here : Android like permissions in iOS (2 answers) Closed 6 years ago . I am not sure how to search for this so even a bunch of keywords would be enough or +1 if someone can point me to the relevant documentation. Android has approx. 122 permissions described here. What is the equivalent in iOS? Do developers declare permissions or can they access everything? If everything, where can I find what this "everything" entails? 回答1: Although there are key

Manipulate app permissions on iOS 8 simulator

孤人 提交于 2019-12-10 12:06:56
问题 Same question as this one, but for iOS 8. While running xctests, how can I make sure permissions are granted/denied programmatically? Is the same TCC.db used? If so, as there are no $HOME/Library/Application Support/iPhone Simulator/8.x directories, where has it moved to? 回答1: Thanks to username tbd, the TCC.db is still in use, but is now located at $HOME/Library/Developer/CoreSimulator/Devices/$DEVICEID/data/Library/TCC/ Schema of the "access" table is the same. NSArray *paths =

iOS location permission after app reinstall

你离开我真会死。 提交于 2019-12-08 20:36:05
问题 I’m using Crashlytics for internal application tests and noticed one interesting thing. I’m using geolocation in my app and asking for permissions from a user. When customer install app for first time he sees default Apple’s geolocation permissions asking pop up. And everything work fine. But, if user will remove app from phone and install it again... in this case, when I’m asking for permissions, pop up just won’t appear BUT geolocation is WORKING. How? Is this some sort of new feature or

UIImagePickerController not asking for permissions on iOS 9

怎甘沉沦 提交于 2019-12-05 07:32:58
I have an iOS app where I present an image picker the self.picker = [[UIImagePickerController alloc] init]; self.picker.delegate = self; self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; self.popover = [[UIPopoverController alloc] initWithContentViewController:self.picker]; [self.popover presentPopoverFromRect:CGRectMake(100, 100, 1, 1) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; The app however doesn't ask for permissions at all, it just displays the error message "This app does not have access to your photos or videos". Any ideas