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

Link Cordova.js in a html apge crash the app

9 Answers 68 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pierre
Top achievements
Rank 1
Pierre asked on 20 Aug 2013, 01:39 PM
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

9 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 22 Aug 2013, 12:17 PM
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.
0
Pierre
Top achievements
Rank 1
answered on 23 Aug 2013, 11:41 AM
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...
0
Yavor Georgiev
Telerik team
answered on 23 Aug 2013, 11:46 AM
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.
0
Pierre
Top achievements
Rank 1
answered on 23 Aug 2013, 01:00 PM
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
0
Yavor Georgiev
Telerik team
answered on 23 Aug 2013, 01:14 PM
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.
0
Pierre
Top achievements
Rank 1
answered on 23 Aug 2013, 01:23 PM
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
0
Pierre
Top achievements
Rank 1
answered on 23 Aug 2013, 01:28 PM
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
0
Pierre
Top achievements
Rank 1
answered on 26 Aug 2013, 12:07 PM
No idea ?
0
Steve
Telerik team
answered on 27 Aug 2013, 11:06 AM
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.
Tags
General Discussion
Asked by
Pierre
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Pierre
Top achievements
Rank 1
Steve
Telerik team
Share this question
or