Link Cordova.js in a html apge crash the app

10 posts, 0 answers
  1. Pierre
    Pierre avatar
    8 posts
    Member since:
    Nov 2012

    Posted 20 Aug 2013 Link to this post

    Hello,
    I'm making an app and I need to use cordova.js, but, when I link it in the head of the html page, it crashes the app when I arrive on the page... (only on android, not in iOs)

    using a Samsung Galaxy S3
  2. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 22 Aug 2013 Link to this post

    Hi Pierre,

     Can you please share more details about your app? What Cordova version are you using? Can you zip and upload a sample project that demonstrates this problem and post the link here so we can take a look?

    Regards,
    Yavor Georgiev
    Telerik

    Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  3. Pierre
    Pierre avatar
    8 posts
    Member since:
    Nov 2012

    Posted 23 Aug 2013 Link to this post

    Hi, thanks for answer
    the app is a professional app and the problem appears only on the page I linked Cordova.js (I need it to use window.open(url, '_system') ). When I click on the link which redirects on the page with Cordova, the app closed and the mobile phone displays "The app stopped"
    I can't link the project because it contains professionals data and I think my boss wouldn't want  to diffuse them...
  4. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 23 Aug 2013 Link to this post

    Hi Pierre,

     I understand. Would it be possible to create a new dummy application and try to replicate the problem there so we can take a look and try to debug it locally?

    Regards,
    Yavor Georgiev
    Telerik

    Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  5. Pierre
    Pierre avatar
    8 posts
    Member since:
    Nov 2012

    Posted 23 Aug 2013 Link to this post

    So, I use Cordova 2.7. In the attached files you'll find a light version of the app : on the index, click on the only one button which bring you on the page where Cordova is linked. If you have the same problem than me, you'll be unable to reach the page because the app stops !

    http://sd-1.archive-host.com/membres/up/34297498454982717/AppBugCordoval.zip
  6. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 23 Aug 2013 Link to this post

    Hi Pierre,

     It appears that you have moved the cordova.js files in the project root when creating the project. This can lead to serious side-effects, because the cordova.js that the app loads should match exactly the native Cordova code the app was built it. In fact, those files are managed by Icenium for you and are replaced appropriately when changing Cordova versions in your project.

     Could you please create a new project without touching the cordova.js files and try to make the same navigation to the page that loads cordova.js?

    Regards,
    Yavor Georgiev
    Telerik

    Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  7. Pierre
    Pierre avatar
    8 posts
    Member since:
    Nov 2012

    Posted 23 Aug 2013 Link to this post

    I already created a new project with all my files. The problem seemed to have disappeared but when I published the app on the Play Store, the bug was present !

    http://sd-1.archive-host.com/membres/up/34297498454982717/KEL_Bureau_Virtuel.zip
  8. Pierre
    Pierre avatar
    8 posts
    Member since:
    Nov 2012

    Posted 23 Aug 2013 Link to this post

    Here's the true version of the first zip, I made a mistake during making the zip file

    http://sd-1.archive-host.com/membres/up/34297498454982717/KEL_Bureau_Virtuel_TRUE_ONE.zip
  9. Pierre
    Pierre avatar
    8 posts
    Member since:
    Nov 2012

    Posted 26 Aug 2013 Link to this post

    No idea ?
  10. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 27 Aug 2013 Link to this post

    Hello Pierre,

    The app you provided in the archive works fine locally both in the Icenium simulator and when deployed to an Android device. We've also tried to reproduce the problem by installing your app from Play Store, but it requires some login information in order to proceed. Either way, if this app is deployed and works on Android device on your end as expected, there is absolutely no reason why it would fail on the same device when you install it from Play Store.

    Regards,
    Steve
    Telerik

    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top