Hi Vishnu,
I don't get what you mean. Can you please illustrate with some sample code in Corona?
I have the following in my manilla to listen to the push notification.
local function onNotification( event )
if event.type == "remoteRegistration" then
Constants.DeviceToken = event.token
_G.PushToken = event.token
elseif event.type == "remote" then
native.showAlert( "Boss Rewards", event.alert, { "OK" } )
elseif event.type == "local" then
native.showAlert( "Boss Rewards", "Local Message to you" , {"OK"} )
end
end
Runtime:addEventListener( "notification", onNotification )
local launchArgs = ...
if ( launchArgs and launchArgs.notification ) then
onNotification( launchArgs.notification )
end
Kindly enlighten me asap.
Thanks.