hi
local function onNotification(event)
print(“nagu onNotification”)
if event.type == “remoteRegistration” then
– This device has just been registered for push notifications.
– Store the Registration ID that was assigned to this application by Google or Apple.
myRegistrationId = event.token
print(" onNotification=")
print(event.name)
inspect(event)
– Display a message indicating that registration was successful.
local message = “This app has successfully registered for push notifications.”
native.showAlert(“Information”, message, { “OK” })
native.showAlert(“Information”, myRegistrationId, { “OK” })
– Print the registration event to the log.
print("### — Registration Event —")
else
– A push notification has just been received. Print it to the log.
print("### — Notification Event —")
end
end
Runtime:addEventListener( “notification”, onNotification )
The above code is not working can any one pls help me out
Made the settings as specified…