Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Setting PHOTOLIBRARY_USAGE_DESCRIPTION parameter with ionic cloud build #229

Open
pimrie opened this issue Aug 3, 2017 · 2 comments
Open

Comments

@pimrie
Copy link

pimrie commented Aug 3, 2017

Hi there,

We have run into an issue where our app crashes when trying to select a profile picture for our app.
We make use of the ngf-select directive to either choose a picture or take a photo.

We have set the PHOTOLIBRARY_USAGE_DESCRIPTION parameter in Config.xml (both manually and as part of removing and re-adding the plugin with the variable name and a setting configured. When we build via ionic cloud then the app continues crashing at the point we try and browse the gallery.

If we build locally and manually modify the app .plist then we can get the app to work correctly but we build to prod using ionic cloud.

Thanks

Peter

@fbognini
Copy link

fbognini commented Aug 11, 2017

Extract your .ipa and check in your info.plist if PHOTOLIBRARY_USAGE_DESCRIPTION parameter has been setted. Probably NOT.

You could use cordova-plugin-camera
in your config.xml:

<plugin name="cordova-plugin-camera" spec="^2.4.1">
        <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="Access to library" />
 </plugin>

in your package.json:

"cordova-plugin-camera": {
       "PHOTOLIBRARY_USAGE_DESCRIPTION": "Access to library"
}

@pimrie
Copy link
Author

pimrie commented Aug 15, 2017

@fbognini thanks for the tip, I have gotten our app working by including the camera plugin but it seems like a bit of overkill to include it just to set that particular description. When I have a bit more time I will try and debug it.

Thanks again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants