gruhn / vue-qrcode-reader

A set of Vue.js components for detecting and decoding QR codes.
https://gruhn.github.io/vue-qrcode-reader
MIT License
2.03k stars 330 forks source link

Cordova iOS support? #265

Closed bitterdev closed 11 months ago

bitterdev commented 2 years ago

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.

samydoesit commented 2 years ago

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" />
github-actions[bot] commented 11 months ago

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