Open tostamista23 opened 3 years ago
I have been at this for two strait days also. NS8 Core, all cheeks on permissions granted and what ever i try i get:
JS: Camera permission was already granted JS: No scan: Configuration error
Also, granted in manifest, also made tns clean even. Its funny tho that I event pulled demo app from git and that is working on my device. I have been over all possible articles and compering demo with my app I see no reasons not to work.
Same. Updated to NS8 today and started receiving this same error "Configuration Error"
. There is only one reference in the code. Some setup/gradle issues related to intent.resolveActivity(Utils.ad.getApplicationContext().getPackageManager()) !== null
?
Going back to nativescript-barcodescanner@4.0.1 fix the problem for me, maybe 4.1.0 only supports ns8+?
After downgrading, if you are getting Cannot read property 'client' of undefined
make sure to delete and add platform
tns platform remove android
then
tns platform add android
I could kiss you right now. Just downgrade to 4.0.1 fixed the issue.
Thanks, I was stuck at this for days.
Interesting, thanks for the report!
I think the 4.1 version was only tested on iOS (because that's the only platform the app I'm using this plugin for is targeting). I'll take a look soon.
Bumped into this too ....
Yeah I just got iPhone to test the app, it does not work on iPhone. But works on android when reverted back. Only way to use my app is thru registration by scanning the barcode from my desktop app. So this would be HUGE help if this bug could be fixed.
Seems like the publish-script fired back at me. I've just published 4.1.1 which should fix the issue for both iOS and Android. Thanks for your patience!
This worked for me. Thank you!
npm install nativescript-barcodescanner@4.1.1 --save
ns platform remove android
ns run android
Hi, when i try to open the scanner i get "Configuration error"
Phone: Xiaomi 9S Android: 11
Both available() and hasCameraPermission() return true
Permissions:
tns platform remove android
thentns platform add android
didnt helpPackage.json
HTML
<Button class="btn btn-primary btn-rounded-sm" text="OPEN" (tap)="doScanWithBackCamera()"></Button>
Thanks for any help
EDIT 1: Its seems intent.resolveActivity returns null even after removing and adding platform