【发布时间】:2016-09-20 08:08:10
【问题描述】:
我在 Corona 中有一些代码会在应用启动 60 秒后触发通知。它看起来像这样:
local notifications = require( "plugin.notifications" )
-- Set up notification options
local notificationOptions = {
alert = "Wake up!",
badge = 2,
sound = "alarm.caf",
custom = { foo = "bar" }
}
local notification1 = notifications.scheduleNotification( 60, notificationOptions )
但是,我无法找到如何使这个周期性。例如,每分钟一次、每小时一次、每天特定时间一次等。
有什么想法吗?
谢谢。
问候, 塞尔维亚
【问题讨论】:
标签: lua notifications coronasdk