wymsee/cordova-imagePicker

Problems to open gallery windon on IOS

rodrigobigode opened this issue · 3 comments

This plugin works fine on android platform, but, running on IOS, when I click to open gallery, the gallery window opens but it's showed only if I roll down the notification bar...
And, after I select the picture and click OK, my page shows the picture only afer I roll notification bar again...
Someone could help me?
Thank you

I have the exact same problem.
It only works if I roll down the notification bar or press the home button and force the app to go to the background.

I think I'm experiencing this in more than one plugin, so I am guessing this could be a general issue. Have you find any solution?

Hey! I just solved my problem by adding gap://ready to the Content-Security-Policy tag on index.html file.

<meta http-equiv="Content-Security-Policy" content="default-src gap://ready *; style-src &apos;self&apos; &apos;unsafe-inline&apos;; script-src &apos;self&apos; https://maps.googleapis.com https://*.googleapis.com &apos;unsafe-inline&apos; &apos;unsafe-eval&apos;">

Reference stackoverflow issue here

Hope it helps.

Hi joaojoyce,
I solved my problem removing the line 'meta "Content-Security-Policy"' from html file... and it works fine