Page 1 of 1

Device ready

Posted: Wed Aug 19, 2015 4:45 pm
by M&M

I can see that Cordova APIs need the device ready event to fire before making any call to Cordova API. Say I have a 2 page application. On the first page I wait for device ready event, and then navigate to Page 2. Now in the Page 2 "Show" event can I make Cordova API calls?

What I mean is that the device ready event has fired once for the starting page - do the subsequent pages also need to wait for device ready event before making calls to Cordova APIs?

I have read the documentation here https://cordova.apache.org/docs/en/4.... but it does not answer my question.

Thanks,
M&M


Device ready

Posted: Thu Aug 20, 2015 4:31 pm
by Evgene Karachevtsev

Hello M&M,

You should use page show event for the second page without calling device ready event secondly.