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

deviceready never fires on RAZR with Android 4.1.2

2 Answers 12 Views
Android Devices
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Max
Top achievements
Rank 1
Max asked on 14 May 2013, 07:08 PM

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 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 15 May 2013, 04:02 PM
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).
Regards,
Steve
the Telerik team

Don't miss the Icenium May Release Keynote - sign up now!
Share feedback and vote for features on our Feedback Portal.
0
Max
Top achievements
Rank 1
answered on 15 May 2013, 05:07 PM
Thanks Steve! Out of habit, I attached the event with jquery's "on" method. Once I switched it, I'm all good.
Tags
Android Devices
Asked by
Max
Top achievements
Rank 1
Answers by
Steve
Telerik team
Max
Top achievements
Rank 1
Share this question
or