2

I received a notification alert as a html format. So how can I display that notification message format by html using custom user notification. Any help would be appreciated.

example:

aps : {
    alert : "<a>this is a tag</a><br/><b>this text will bold out</b>",
}
Kazunori Takaishi
  • 2,268
  • 1
  • 15
  • 27
  • 1
    You can not display html formatted text in iOS as there is no rich text support in iOS Push Notification. – iVarun May 30 '18 at 15:42
  • 2
    If your you want to show custom alert with UILabel on your app, check this https://stackoverflow.com/a/35008239/3485139 But if you question is how show this message on notification center without tags, my answer no way – Maxim Zakopaylov May 30 '18 at 15:46
  • thanks so much guys! – Thiều Quang Cường May 30 '18 at 16:16
  • Also it´s not a good practise that the api send styling informations to the mobile device. The mobile device should check the category or action parameter and format the informations itself – BraveButter Jun 28 '18 at 08:28

0 Answers0