push notification ?

Does Corona already support push notification or not yet?

Corona supports local notification but not push notification as of now. But I hope we can see it pretty soon. :)

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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
views:3382 update:2011/10/25 9:10:48
corona forums © 2003-2011