@zxing/ngx-scanner Can't get user media, this is not supported

Hello, I have a problem when using zxing ngx scanner in iOS and Android
On browsers it works but not in iOS and android applications, I have an error:
" @zxing/ngx-scanner Can’t get user media, this is not supported."

I tried to generate a certificate and I added those lines in my config.xml:

<resource-file src="ssl/server.crt" target="app/src/main//assets/server.crt" />

in platform android and:

<resource-file src="ssl/server.crt" />

in platform iOS.

Can you help me?

(sorry for my English, I’m French)