thingsboard / flutter_thingsboard_app

ThingsBoard Mobile Application
https://thingsboard.io/products/mobile/
BSD 3-Clause "New" or "Revised" License
220 stars 162 forks source link

Access to originator of notification #69

Closed mahshadparsa closed 4 months ago

mahshadparsa commented 6 months ago

Hi every one I try to get the originator of the notification. When I print ('[WebSocket Data]: Received notification: ${notification.notifications}'); I can see the originator. But when I try to access it by ‘notification.notifications?.first’. , I can't get any originator suggestions but other parts exist. This problem is shown at below : Untitled

Please guide me on how I can access to originator of notification.

ybeshkarov commented 6 months ago

Hi @mahshadparsa!

Could you please add a print output forprint ('[WebSocket Data]: Received notification: ${notification.notifications}');? Also, mark the field you are interested in.