Application wont start after Android 4.4.2

7 posts, 0 answers
  1. Joakim
    Joakim avatar
    14 posts
    Member since:
    Mar 2013

    Posted 08 Jan 2014 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 09 Jan 2014 Link to this post

    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.
  3. Joakim
    Joakim avatar
    14 posts
    Member since:
    Mar 2013

    Posted 09 Jan 2014 Link to this post

    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
  4. Shawn
    Shawn avatar
    6 posts
    Member since:
    Sep 2012

    Posted 03 Feb 2014 in reply to Joakim Link to this post

    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.
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 03 Feb 2014 Link to this post

    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)
  6. Joakim
    Joakim avatar
    14 posts
    Member since:
    Mar 2013

    Posted 03 Feb 2014 Link to this post

    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 ?
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 03 Feb 2014 Link to this post

    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)
Back to Top