This is a migrated thread and some comments may be shown as answers.

Barcode Plugin fail (undefined) after update to Cordova 3.2 (Android and iOS)

1 Answer 36 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vitor
Top achievements
Rank 1
Vitor asked on 02 Jan 2014, 08:41 PM
I Have a project that is using Barcode Plugin and Cordova 3.0 and is running ok on android and iOS.

After i upgrade to Cordova 3.2, because ION tell me to do that, the Barcode PLugin fail on andoid and iOS.

window.plugins.barcodeScanner.scan(
                function (result) {
                    if (!result.cancelled) {
                            ...                        
                    }
                },
                function (error) {
                    ...
                });

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 03 Jan 2014, 02:41 PM
Hi Vitor,

The BarcodeScanner plugin has been updated to a new version that works with Cordova 3.2. You would need to delete your BarcodeScanner plugin from the app's Plugin folder as a first step, then navigate to the project properties and enable the BarcodeScanner plugin from there. You should also replace window.plugins.barcodeScanner with cordova.plugins.barcodeScanner and you should be done.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Report a bug
Asked by
Vitor
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or