katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.57k stars 1.75k forks source link

Encode HTML in text property does not work #1907

Closed rohankoliyal closed 2 weeks ago

rohankoliyal commented 4 years ago

I need to have html encoded text as in to bold and underline the given text in Localnotification Payload "text" property

Your Environment

Expected Behavior

The notficiation text as assigned in encode HTML

Actual Behavior

The notficiation text shows html tags

this.localNotifications.schedule({ // id: 1, foreground: true, title: "titleMessage", text: asasassa });

Reproduce this issue; include code to reproduce, if relevant

  1. ...
  2. ...
  3. ...
  4. ....

Context

I wanted to underline and bold text property of the payload

Debug logs

juank525 commented 3 years ago

I have the same problem only when the app is in the foreground, but when the notification arrives and the app is in the background or closed it interprets the HTML correctly.

AtamyratBabayev commented 3 years ago

Recently I faced the same behavior. Any updates on this issue?