Handle push notification on iPhone for resumed application


#1

I’m using Cordova Push Notifications Plugin - https://github.com/phonegap-build/PushPlugin, for both Android & iPhone.
On iPhone when push notification arrives and the app is not running, if user clicks on notification onNotificationAPN event is called, however if the user clicks on the app itself this event is not triggered.
I can catch this general event using document.addEventListener(‘resume’, onResume, false);
however inside onResume I have no way to identify that push notification arrived.
According to this post:
http://stackoverflow.com/questions/6732427/how-do-i-access-remote-push-notification-data-on-applicationdidbecomeactive
there’s an api that allows to get this indication, I wonder if this api is exposed also in the plugin.