deviceready never fires on RAZR with Android 4.1.2

Thread is closed for posting
3 posts, 0 answers
  1. Max
    Max avatar
    11 posts
    Member since:
    Jan 2013

    Posted 14 May 2013 Link to this post

    I have been trying to build my first app with Icenium. It works great in the simulator. When I build and install it on my device, the “deviceready” event never gets triggered. I am using a Droid RAZR with Android version 4.1.2.


    Would really appreciate some advice. Thanks!

  2. Steve
    Steve avatar
    10941 posts

    Posted 15 May 2013 Link to this post

    Hi Max,

    We have not been able to reproduce such problem in our local tests. Check the following:
    • your app targets Cordova 2.4
    • the registration of Cordova on the page precedes the registration of jquery mobile and your scripts.
    • deviceready event is registered as documented in Cordova docs namely:

      "Typically, you will want to attach an event listener with document.addEventListener once the HTML document's DOM has loaded.

      This event behaves differently from others in that any event handler registered after the event has been fired will have its callback function called immediately."

    • you run your app on actual device and do not fully trust the simulator, as it is currently working with mockups of the Cordova api and not the actual Cordova (this would change in our next major release).
    the Telerik team

    Don't miss the Icenium May Release Keynote - sign up now!
    Share feedback and vote for features on our Feedback Portal.
  3. Max
    Max avatar
    11 posts
    Member since:
    Jan 2013

    Posted 15 May 2013 Link to this post

    Thanks Steve! Out of habit, I attached the event with jquery's "on" method. Once I switched it, I'm all good.
Back to Top