Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ionic ios10 beta permissions bug

I just upgraded to ios10 beta on my iPhone & realized the permissions (to access photos, contacts, etc) now require a description string. I am on ionic 2

I tried adding this:

<config-file target="*-info.plist" parent="NSContactsUsageDescription">
<String>This is my permission string</String>
</config-file> 

to my config.xml but that did not work.

I then tried to do it manually through XCode & now it works but I have to put the app in the background in order to get the permission popup. Is this a known bug or is it something I'm doing wrong?

like image 776
DanielRead Avatar asked Mar 12 '23 07:03

DanielRead


1 Answers

I would have to see your Error, but basically you now have to add things like this

camera

<key>NSCameraUsageDescription</key>
<string>Test message</string>

Photo Library

<key>NSPhotoLibraryUsageDescription</key>
<string>Test message</string>

In your Appname-info.Plist

like image 184
Thomas Degroot Avatar answered Mar 21 '23 07:03

Thomas Degroot