AppBuilder works poorly with ng-cordova

7 posts, 1 answers
  1. Tyler
    Tyler avatar
    15 posts
    Member since:
    Dec 2010

    Posted 27 Jun 2014 Link to this post

    So this was an interesting bug that I stumped upon. There is a new library at ngcordova.com that makes using cordova plugins easier with Angular. Anyway, the javascript file is called "ng-cordova.js". When the simulator runs, code gets tacked onto this file by AppBuilder. I think AppBuilder looks for any file that ends in "cordova.js" and tacks on javascript code to it before runtime.
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 02 Jul 2014 Link to this post

    Hi Tyler,

    Thank you for reporting this issue - we can confirm it is a bug and I logged it in our internal bug tracking system. As a small sign of appreciation for bringing it to our attention, I updated your Telerik points.

    As for the support of ng-cordova, please note that the AppBuilder Simulator cannot work with custom plugins. Please have a look at its limitations for more information. This means that you might not be able to test any plug-in related logic implemented via ng-cordova in the Simulator. However, if you share a sample app utilizing ng-cordova, we will gladly take a closer look at it.

    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!

     
  3. Tyler
    Tyler avatar
    15 posts
    Member since:
    Dec 2010

    Posted 02 Jul 2014 in reply to Tina Stancheva Link to this post

    Once I renamed ng-cordova.js to something else, I have had no problems using it in the simulator. ng-cordova is just a wrapper for the core cordova plugins. Thank you for your support.
  4. Bala Chandra
    Bala Chandra avatar
    5 posts
    Member since:
    Feb 2013

    Posted 09 Jul 2014 Link to this post

    I am also facing Same issue. Is there any work around for this?
  5. Tyler
    Tyler avatar
    15 posts
    Member since:
    Dec 2010

    Posted 09 Jul 2014 in reply to Bala Chandra Link to this post

    Yes, rename "ng-cordova.js" to something else like "ng-c.js"
  6. Darren
    Darren avatar
    32 posts
    Member since:
    Sep 2013

    Posted 12 Sep 2014 in reply to Tina Stancheva Link to this post

    Hi Tina

    Can you tell me if this bug/problem has been fixed in the latest AppBuilder 2.5?
    I checked the changelog and couldn't see it.

    Thanks
    Darren
  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 16 Sep 2014 Link to this post

    Hi Darren,

    This issue is not yet resolved but we will do our best to address it for the AppBuilder 2.6 release. In the meantime, I hope renaming the files as a workaround is an acceptable approach for you.

    Regards,
    Tina Stancheva
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top