Problem with Cordova ion camera with ios 10

I am using ion 1 with a cord plug-in camera 2.3.0. I am using the latest version of cordova.

When I press a button to get an image, whether to use the camera or gallery ($ cordovaCamera.getPicture) in ios 10, nothing happens. If I press the home button and return to the application, the camera or gallery will appear immediately.

I already allowed permission for this.

This works perfect for ios 9 and below and all versions of Android.

Please, help.

+6
source share
1 answer

I confirm that this is allowed in the Cordoba application freezing during the launch on iOS 10 , as Sven Sonniksen pointed out in the comment to the question.

Add gap://ready file: to the Content-Security-Policy meta tag in index.html .

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

It was also reviewed here: https://forums.adobe.com/thread/2211591 , where Allsetra ICT stated that changing the meta tag to this simple form also worked (although I did not confirm this).

 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
+4
source

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


All Articles