fixed onNotificationAPN not getting fired upon push notification (callback function needs run-time definition, whereas demo used parse-time definition)