hypery2k / cordova-barcodescanner-plugin

barcode scanner plugin for PhoneGap
51 stars 39 forks source link

Scanning failed with error : "write settings: false" #23

Open ghost opened 6 years ago

ghost commented 6 years ago

Can you tell me where I have to add this below code? Is it in config.xml file?

If I add that in config.xml then I'm getting build failed error otherwise building is happening and while I'm calling that scan method, I'm getting above error. Please help!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/47424196-scanning-failed-with-error-write-settings-false?utm_campaign=plugin&utm_content=tracker%2F12908089&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F12908089&utm_medium=issues&utm_source=github).
MOLEDesign commented 6 years ago

I fixed this issue by building with android sdk23, when I used 25 I got exactly the same issue

On StackOverflow another coder thinks he has found the lines that cause the issue

https://stackoverflow.com/questions/45172337/ionic-creator-cordova-barcode-scanner-write-false/45211211#45211211

MOLEDesign commented 6 years ago

My project was an ionic one, but all I did was change the line in platforms/android/project.properties from target=android-25 to target=android-23

KitchenLiang commented 6 years ago

hi,you can try this. cordova plugin add https://github.com/wildabeast/BarcodeScanner.git

ghost commented 6 years ago

I was getting this error in 0.7.1 version and It got fixed with old version - 0.7.0