Difference between platform.ready and platform.resume


#1

I am building an app where I would like to know each time the app is started and also each time the app is returned from pause state.

Which platform event would be best? I can see that ready is also triggered in a browser, that’s not important in this case.

I just need to know which event is best to reliably indicate the app has started or resumed.

Does resume get fired on initial startup?
Does ready get fired on the app resuming after a pause?

Z.


#2

deviceready = is fired only once --> after cordova api is ready to work with
resume = fires when the app comes from background back (so previously paused and now active again)


#3

That’s perfect.

platform.ready is on startup only.

Thanks.
Z.