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

cordova.plugins undefined

1 Answer 102 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Daniel
Top achievements
Rank 1
Daniel asked on 10 Jul 2014, 01:35 PM
Hi, 
I'd like to add the barcodescanner plugin to my project. 
I checked the plugin in the settings and enabled camera permission but cordova.plugin.barcodescanner is still undefined. After a lot of googleing I added this script http://goo.gl/z1iasb but nothing changed. 
I think that I'm missing something - but what?

Daniel

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 10 Jul 2014, 01:53 PM
Hello Daniel,

You can download and examine the BarcodeScanner Sample app we provide and see if the issue can be reproduced there. Also, please note that the BarcodeScanner plugin is not supported within the AppBuilder device simulator as described in the Simulator Limitations article. This means that you will not be able to test the plugin functionality within the simulator. Also, while testing it on a device, you need to make sure that you do so after the deviceready() event was fired.

If the above information doesn't help, we would appreciate it if you can try to reproduce the issue in the sample project and share the steps we can follow to do that on our side as well. This way we will be able to test the plugin behavior locally and further investigate the case.


Regards,
Tina Stancheva
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
Apache Cordova
Asked by
Daniel
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or