Phonegap push notification sort of (fire event from remote)
-
26-10-2019 - |
Question
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
Solution 2
This Google Groups post shows how to call a javascript method from the delegate file
https://groups.google.com/forum/#!topic/easyapns/5vGAEDSRQDY
OTHER TIPS
Urban Airship has a demo that might be worth checking.
Hope this helps!
Note that I am no way affiliated with this product or it's authors.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow