Like the subject line says, I’m not getting a notification event when the app is in the foreground.
Build 2014.2506
I just started playing with GameThrive push, so I’m not sure if I’ve got something wrong in the listener from the docs.
Could anyone using push verify there is no notification event when the app is in the foreground.
local function notificationListener( event )
if ( event.type == “remote” ) then
–handle the push notification
elseif ( event.type == “local” ) then
–handle the local notification
end
end
–The notification Runtime listener should be handled from within “main.lua”
Runtime:addEventListener( “notification”, notificationListener )
Nail