Ive been trying to listen for some sort of event as the application becomes active, initially loaded or when been "minimized" and reopened.
Should i listen for some like "activate" on Viewport or is there some other way?
The problem is that i cant seem to find a way to solve this.
I build my application using PhoneGap and the reason i want to do this is when a push notification arrives and the user clicks "View" i want to trigger some event.
Have you tried listening for the painted event? What made me understand the order of events was also to put this at key points in my js files:
console.log('Main View Loaded');
console.log('Main Controller Loaded');
so I could see in what order things were happening. Not sure if this works too well when using Phonegap though, I heard somewhere that it is hard to debug...