You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have other plugins that require to have NSPhotoLibraryUsageDescription key in plist file so I have already added the below in my config.xml to set this key before using this plugin
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
<string>This app requires photo library access to support adding photo attachments.</string>
</edit-config>
The latest version of this plugin requires to provide IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION variable during installation to add the same key to plist file.
So now it seems trying to set this property from both, the plugin.xml and config.xml and causes the problem when I try to restore platform/plugins. This problem is intermittent so I'm not 100% sure yet but I saw several reports about the problems when plugin.xml/config.xml wanting to make conflicting changes caused problems - see apache/cordova-common#24 (comment)
Besides, I'm not sure if this is a good idea to set this general NSPhotoLibraryUsageDescription key by the plugin since this is not this plugin specific thing.
The text was updated successfully, but these errors were encountered:
Also weirdly this is making it impossible to remove the plugin because it complains that you have to provide the variable description to remove it. This made upgrading the plugin particularly frustrating.
Also weirdly this is making it impossible to remove the plugin because it complains that you have to provide the variable description to remove it. This made upgrading the plugin particularly frustrating.
ryaa
changed the title
Consider removing IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION variable from installation command
Consider removing IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION variable from installation command or make it optional
Nov 12, 2019
Also weirdly this is making it impossible to remove the plugin because it complains that you have to provide the variable description to remove it. This made upgrading the plugin particularly frustrating.
I found that the only way to remove the plugin is first remove android platform (cordova platforms rm android) and then remove plugin command works.
Added a pull request to make IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION variable in the installation command optional #95
I have other plugins that require to have NSPhotoLibraryUsageDescription key in plist file so I have already added the below in my config.xml to set this key before using this plugin
The latest version of this plugin requires to provide IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION variable during installation to add the same key to plist file.
So now it seems trying to set this property from both, the plugin.xml and config.xml and causes the problem when I try to restore platform/plugins. This problem is intermittent so I'm not 100% sure yet but I saw several reports about the problems when plugin.xml/config.xml wanting to make conflicting changes caused problems - see apache/cordova-common#24 (comment)
Besides, I'm not sure if this is a good idea to set this general NSPhotoLibraryUsageDescription key by the plugin since this is not this plugin specific thing.
The text was updated successfully, but these errors were encountered: