我试图在 iOS 上显示一个简单的本地通知,但由于某种原因 Notification.body 没有显示。在 Android 上,一切都按预期工作。
这是创建通知的代码:
var notification:Notification = new Notification();
notification.id = int(Math.random()*100);
notification.tickerText = "New quiz is here!";
notification.title = "New quiz!";
notification.body = quizTitle + "Take the quiz now!";
notification.count = 1;
notification.iconType = NotificationIconType.APPLICATION;
notification.vibrate = true;
notification.playSound = false;
notification.delay = 5;
这就是它的显示方式,你看不到,没有正文: