vue-qrcode-reader icon indicating copy to clipboard operation
vue-qrcode-reader copied to clipboard

Cordova iOS support?

Open bitterdev opened this issue 2 years ago • 1 comments

Hey there. Great add-on. For the PWA this is working like a charm. Anyway. We also have native app versions and i'm not able to get this running on iOS. When i run within the emulator i get error messages like insecure context and in iOS device i get the error message that there is no camera available. Is there a trick? 3rd-party add-on required? Some config tweaks? Thanks.

bitterdev avatar Sep 24 '21 19:09 bitterdev

What hostname is your cordova app using?

I also had this insecure context error (SSL error) when building a capacitorjs app for android and ios. When i first tried it in development the hostname in capacitor.config.js was something like "localhost:3000".

Try to change it for development to "localhost" just remove the port. The insecure context error on iOS was gone in my case.

UPDATE: Try to add this to your config.xml - Cordova iOS 6.0.0 Released! - WKURLSchemeHandler introduction fixes CORS issues

<preference name="scheme" value="app" />
<preference name="hostname" value="localhost" />

samydoesit avatar Nov 22 '21 14:11 samydoesit

This issue has been marked as stale. If there is no further activity it will be closed.

github-actions[bot] avatar Jul 20 '23 12:07 github-actions[bot]