$cordovaBarcodeScanner is not working in ios

Hi all,

I installed the plugin in ios, and also add the variable in .plist.
The prompt in which it ask for allow the camera or not it shows me after 1 min i don’t know why.
when i click on the button it shows the prompt after 1 min.

Do you guys have any idea what i am missing.
or any suggestions?

Trying to learn :slightly_smiling_face:

Have you tried changing your CSP

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

Thanks for replying.

what i used is

is this correct or should i use your? because before my app browser was not working properly so i did this.

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

The difference seems to be gap: directive. I read somewhere gap: is needed
for ios. You can try with mine and test both

Yes its was working great. Thanks and sorry late reply.