deviceready / any event not firing on Android device

6 posts, 0 answers
  1. Simon
    Simon avatar
    3 posts
    Member since:
    Jan 2014

    Posted 05 Feb 2014 Link to this post

    I have added the event code found on the following page https://github.com/Icenium/sample-events/blob/master/sample-events/scripts/main.js to my Kendo UI mobile app.  The aim being to show the events that are fired on iOS and Android devices.

    When i run the app through the Appbuilder companion app on iOS the events are fired as expected, however when i run the app on Android no events get fired at all.

    Can anyone shed any light on why this might be happening?
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 06 Feb 2014 Link to this post

    Hi Simon,

    The events sample works correctly on Android devices if deployed as is. If it is not working on your end, maybe there is something else wrong in your project. Please share what is the name of your project and we would have a quick look.

    In general Cordova Events API, has its own help and code snippets, which you can try or just go through in case you have missed something.

    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)
  3. Simon
    Simon avatar
    3 posts
    Member since:
    Jan 2014

    Posted 06 Feb 2014 Link to this post

    Hi Steve

    Thanks for the reply and for passing on the link to the Cordova Events API.  The name of the project is TestApp.

    regards
    Simon
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 11 Feb 2014 Link to this post

    Hi Simon,

    I used your TestApp to test locally on a couple of Android devices and the deviceready event was fired as expected (in fact it is fired twice for Android in Debug due to a bug we would fix for next version). So please test on several devices and if the problem persists on more than one device, please share its model and OS version.

    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)
  5. Simon
    Simon avatar
    3 posts
    Member since:
    Jan 2014

    Posted 11 Feb 2014 Link to this post

    Hi Steve

    Yes, deviceready works ok, but the following don't:

    pause, resume ,online, offline etc

    i'm on a Nexus 7 running Android 4.4.2

    thanks
    Simon






  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 14 Feb 2014 Link to this post

    Hi Simon,

    There are no event handlers to attach to these events in your TestApp project, have you removed those by mistake?

    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