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

Application wont start after Android 4.4.2

6 Answers 134 Views
Google Android
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joakim
Top achievements
Rank 1
Joakim asked on 08 Jan 2014, 04:53 PM
Hi, we have developed an application and it has been out and live since May. We just got several reports that the application does not start at all after customers has updated to 4.4.2 KitKat. Has anyone else experienced this ? What could be the cause? The application seems to be loading the background image, but it does not load up the menu, or the index view. 

Sincerely,
Joakim

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 09 Jan 2014, 12:51 PM
Hi Joakim,

There are no known issues with hybrid apps based on Cordova and latest Android 4.4 and you're the first person to report such an issue. All of our samples and templates work under KitKat without any modifications. You can use remote debugging tools like jsHybugger and Weinre to try to pinpoint what is going wrong. You can also setup Fiddler to intercept your device's traffic which would give you a clue what's going on if the problem is failing/wrong requests/responses.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Joakim
Top achievements
Rank 1
answered on 09 Jan 2014, 02:05 PM
Hi Steve,

I found the problem.. Databases stopped working with the new release I think. Changed: 
_appDb = window.sqlitePlugin.openDatabase("DB"); 
to: 
_appDb = window.openDatabase("DB", "1.0", "DB NAME", 200000);
which then made the application work again. Unfortunately I just have a nexus 4 for debugging at the moment, so dont really know if this is the case for all devices. All of our customers who updated to 4.4.2 have had their application crash at the start screen. This is most likely our fault, but if someone else has had this happen to them, this is a fix. 

Regards, 
Joakim
0
Shawn
Top achievements
Rank 2
answered on 03 Feb 2014, 03:37 PM
We had the same issue.  If you update to the latest version of the sqlite plugin the issue is resolved.  https://groups.google.com/forum/#!topic/lite4cordova/GxuO3Crb6w4.
0
Steve
Telerik team
answered on 03 Feb 2014, 03:42 PM
Hi guys,

Telerik AppBuilder already comes with the latest version of SQLite plugin, so if you're on an old Cordova version, switching to Cordova 3.2 would also update the built-in plugins to their latest counterparts in our IDE.

Regards,
Steve
Telerik
Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
0
Joakim
Top achievements
Rank 1
answered on 03 Feb 2014, 03:47 PM
Hey Steve.

Yeah updating Cordova has always been something that we would like to have time with. But Cordova never seems to make their code backwardscompatible, so each time we have updated it, several parts of the application has stopped working, or even crashed the entire app. We are releasing applications on quite a high basis, and I am alone at it at the moment, then we have two persons on the serverside. 

I would like to have the time to switch up to the latest cordova (currently stuck at 2.7), but we cant. Do you have any reccomendations for this problem ?
0
Steve
Telerik team
answered on 03 Feb 2014, 03:59 PM
Hi Joakim,

In such case I would recommend updating only the SQLite plugin as a custom plugin and see if that remedies the situation. You would have to disable the SQLite plugin from the project options, delete its content from the Plugins folder and import the latest version as a custom plugin as explained here: Import Custom Plugins. If the latest plugin version does not play well with older Cordova, you can try to search for the commit that fixes your problem with Android 4.4 and try incorporating only that particular fix inside the older version of SQLite plugin that you're using now.

Regards,
Steve
Telerik
Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
Tags
Google Android
Asked by
Joakim
Top achievements
Rank 1
Answers by
Steve
Telerik team
Joakim
Top achievements
Rank 1
Shawn
Top achievements
Rank 2
Share this question
or