leam-tech/renovation_core

Error when notification is generated via FCM

Opened this issue · 0 comments

When choosing to create a Notification with FCM as the channel, the subject field is hidden, and so it cannot be defined. Because of that, whenever the notification is triggered, it fails with a NoneType error.

The check in question:

title = notification.subject
if "{" in title:

Subject field is hidden when FCM is selected:
Screenshot from 2021-08-24 12-39-08