Hi there,
as spoken with peach (Ansca Team) here a bug report for
repeating Notifications.
https://developer.anscamobile.com/forum/2011/12/11/set-icon-badge-while-notification-please-help#new
When in Background, Only the first notification activates
the notificationlistener and gives a console output.
So i can’t create new notifications. It should just work
as the app is in the foreground
io.output():setvbuf("no")
display.setStatusBar( display.HiddenStatusBar )
print ("---- Repeated Notification")
-- Options for iOS
local options = {
alert = "Wake up!",
badge = 2,
custom = { foo = "bar" }
}
local utcTime = os.date( "\*t", os.time() + 10 )
local notification = system.scheduleNotification( utcTime, options )
local listener = function( event )
print( event.name ) -- ==\> "notification"
print( event.custom.foo ) -- ==\> "bar"
local utcTime = os.date( "!\*t", os.time() + 10 )
local notification = system.scheduleNotification( utcTime, options )
end
Runtime:addEventListener( "notification", listener )
greets
chris
[import]uid: 4795 topic_id: 19169 reply_id: 319169[/import]