I’m looking for a way to trigger a phonegap app to do something by sending a notification from server. I am okay if it sends an actual notification but I also want it to fire some kind of event that my app can listen to – in my case I need the app to a) receive a notice of new messages and automatically reload the messages from server – or at least set a flag to reload once the user relaunches app.
Thanks
This Google Groups post shows how to call a javascript method from the delegate file
https://groups.google.com/forum/#!topic/easyapns/5vGAEDSRQDY