Does Corona already support push notification or not yet? [import]uid: 23063 topic_id: 16722 reply_id: 316722[/import]
Corona supports local notification but not push notification as of now. But I hope we can see it pretty soon.
[import]uid: 71210 topic_id: 16722 reply_id: 62627[/import]
yea me too
hey you know how local notification works?
I read here in ansca’s blog( http://blog.anscamobile.com/2011/10/daily-builds-update-626-631/comment-page-1/#comment-5575 ) but I dont get it
in my main.lua I put:
local options = {
alert = "Wake up!",
badge = 1,
sound = "alarm.caf",
custom = { anythingYouWant = "Corona SDK Rocks!" }
}
-- schedule using UTC (Coordinated Universal Time)
local utcTime = os.date( "!\*t", os.time() + 60 )
local launchArgs = system.scheduleNotification( utcTime, options )
local function notificationListener( event )
-- display alert that shows the event name and type:
native.showAlert( event.name, event.type, { "OK" } )
-- do something here
end
-- Listen for notification events:
Runtime:addEventListener( "notification", notificationListener )
if launchArgs and launchArgs.notification then
-- call the event listener manually:
notificationListener( launchArgs.notification )
end
but don’t work so good, after the native alert, my app stop working
any idea in how to handle with this notifications?
thanks
EDIT: my mistake I just remove the if launchArgs and launchArgs.notification then
– call the event listener manually:
notificationListener( launchArgs.notification )
end
and works… but this only works 1 time? [import]uid: 23063 topic_id: 16722 reply_id: 62629[/import]
any updated yet for andoroid ??? [import]uid: 160777 topic_id: 16722 reply_id: 117712[/import]