cordova.plugins undefined

Thread is closed for posting
2 posts, 0 answers
  1. Daniel
    Daniel avatar
    1 posts
    Member since:
    Jun 2014

    Posted 10 Jul 2014 Link to this post

    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 but nothing changed. 
    I think that I'm missing something - but what?

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 10 Jul 2014 Link to this post

    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.

    Tina Stancheva

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

Back to Top