Event.PUSH_NOTIFICATION

Available since version: Gideros 2011.6

Description:

Event is received when application is opened by clicking on push notification.
Or when notification is received while application is in foreground (because in this case notification will not be displayed on the device).

Value:

Event.PUSH_NOTIFICATION = "pushNotification"

Examples:

Get push notifications

--retrieve shared instance
local mngr = NotificationManager.getSharedInstance()

mngr:addEventListener(Event.PUSH_NOTIFICATION, function(e)
	--printing notification information
	print("Id: "..e.id)
	print("Title: "..e.title)
	print("Text: "..e.message)
	print("Number: "..e.number)
	print("Sound: "..e.sound)
end)