0

I trying to display a simple local notification on iOS but for some reason Notification.body is not being displayed. On Android everything works as expected.

This is the code for creating the notification:

    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;

And this is how it is displayed, as you can't see, there is no body:

enter image description here

deloki
  • 1,729
  • 2
  • 18
  • 26

1 Answers1

1

iOS does not support a "body" in a notification. Generally only the app name, title/message and an action.

Regards, Michael

Michael
  • 3,776
  • 1
  • 16
  • 27