marpies / onesignal-ane

OneSignal extension for Adobe AIR (iOS & Android)
Apache License 2.0
44 stars 7 forks source link

Missing Documentation - Notification received and open handler #9

Closed jkasten2 closed 7 years ago

jkasten2 commented 7 years ago

There is a onStatus function in OneSignal.as however it is not documented in the README.MD. Include information on how to setup one and read the notification from the NOTIFICATION_RECEIVED event as well.

marpies commented 7 years ago

Hi @jkasten2,

The onStatus method is meant for internal use only and should not be exposed to the developers. The same applies for the NOTIFICATION_RECEIVED event. The event is used to receive a message from the native library. The message is parsed by the ActionScript library and OneSignalNotification object is created. This object can be retrieved by the developers using a notification callback.