【发布时间】:2017-01-18 18:31:33
【问题描述】:
我在 Corona 中有一些通知。问题是,文本太大,我需要显示更大的(多行)通知,例如 Gmail 应用程序。以下是通知现在的样子:
这是我的代码:
local notificationOptions =
{
alert = text,
badge = 2,
sound = "alarm.caf",
custom = { foo = "bar" }
}
local notification = notifications.scheduleNotification( nextScheduleTime + ( day + math.floor(day/7)) * 24 * 60 * 60, notificationOptions )
知道怎么做吗?
【问题讨论】:
-
您是否尝试过添加换行符
\n看看会发生什么? -
是的,很遗憾,什么也没发生。
-
尝试在您的文本中使用 \n 可能会创建一个新行
标签: android lua push-notification notifications coronasdk