Closed akashs1706 closed 7 years ago
Hi Akash - I am having the same issue. I've also tried a few different barcode scanners - no luck.
Below are screenshots of the device's software info and the error message.
If you set your target SDK Version to 22 - it should work.
Unfortunately I've already uploaded the app for 23 - and Google Store does not allow to downgrade the SDK version...
Thanks @bpocallaghan for the reply. I have tried for that also but no luck. I am wondering if there is another solution?
If there is any hack for camera permissions before scanner opens?
Do you mean that you tried setting it to target sdk = 22 without any success?
I use phongap build - in my config.xml I have
<preference name="android-targetSdkVersion" value="22" />
- seems to work
<preference name="android-targetSdkVersion" value="23" />
- does not work
Features / Permissions
<feature name="http://api.phonegap.com/1.0/camera"/>
Plugins
<gap:plugin name="cordova-plugin-barcodescanner" source="npm" />
I think I will try this plugin 'phonegap-plugin-barcodescanner' - [github] [npm]
@bpocallaghan Thanks for suggestions. I just installed Phonegap barcodescanner plugin. will let you know after testing it on some latest android versions. Thanks.
could you try
cordova plugin add cordova-plugin-barcodescanner@next
?
I tried using "cordova plugin add cordova-plugin-barcodescanner@next" but when I build the app, I cannot install it on my device.
To solve this problem, you can give 'Camera permission'
I am using this plugin to for scanner, but while testing the app in Android 6.1 it displays an error "Sorry, the camera encountered a problem. You may need to restart the device". How can i overcome this issue.