Ion access error for ios10 beta

I just updated the ios10 beta on my iPhone and realized that permissions (for accessing photos, contacts, etc.) now require a description line. I'm on ion 2

I tried to add this:

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

in my config.xml, but this did not work.

Then I tried to do this manually through Xcode, and now it works, but I have to put the application in the background to get a permission popup. Is this a known bug or is this what I am doing wrong?

+4
source share
3 answers

I will need to see your mistake, but basically you have to add things like this.

the cameras

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

Photo library

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

Appname-info.Plist

+6

, . , , . " " , . .

0

For the camera and photo libraries, use this, for me it's all fixed.

ionic cordova plugin remove cordova-plugin-camera
ionic cordova plugin add cordova-plugin-camera --variable CAMERA_USAGE_DESCRIPTION="app uses camera" --variable PHOTOLIBRARY_USAGE_DESCRIPTION="app uses library"
0
source

Source: https://habr.com/ru/post/1652502/


All Articles