-- Options for iOS
local options = {
alert = "Wake up!",
badge = 2,
sound = "alarm.caf",
custom = { foo = "bar" }
}
-- schedule using seconds from now
local notification = system.scheduleNotification( 60, options )
-- schedule using UTC (Coordinated Universal Time)
local utcTime = os.date( "!\*t", os.time() + 60 )
local notification = system.scheduleNotification( utcTime, options )
local listener = function( event )
print( event.name ) -- ==\> "notification"
print( event.custom.foo ) -- ==\> "bar"
end
Runtime:addEventListener( "notification", listener )
badge is the red number that shows in app Icon
if helps…
http://blog.anscamobile.com/2011/10/daily-builds-update-626-631/
in this link show how to make this notifications when app is not running
Dhennrich. [import]uid: 23063 topic_id: 552 reply_id: 66009[/import]