Event.LOCAL_NOTIFICATION

Available since version: Gideros 2011.6

Description:

Event is dispatched when application is opened by clicking on local 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.LOCAL_NOTIFICATION = "localNotification"

Examples:

Catching event if app opened from local notification or notification received in background

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

mngr:addEventListener(Event.LOCAL_NOTIFICATION, function(e)
	--getting id of notification
	local id = e.id
	
	--printing other information
	print("Title: "..e.title)
	print("Text: "..e.message)
	print("Number: "..e.number)
end)