hms-flutter-plugin icon indicating copy to clipboard operation
hms-flutter-plugin copied to clipboard

LocalNotification empty DATA attribute

Open p3pp8 opened this issue 3 years ago • 2 comments

Message coming by tapping on a local notification has always an empty data object even when the local notification is built with a value defined in DATA attribute (HMSLocalNotificationAttr.DATA).

p3pp8 avatar Sep 27 '22 15:09 p3pp8

Thank you for your question. Did you send the notification through Huawei Push kit? If yes, pls provide the message body of the push request.

xuxiapu avatar Sep 28 '22 01:09 xuxiapu

Yes i use push kit and it’s a local notification built in app filling DATA attribute. When i tap on the notification i aspect to find what i’ve put inside DATA but i only find the notification body inside an object named extras with an empty data object. I’ll try to post some more details…

p3pp8 avatar Sep 28 '22 05:09 p3pp8

Hi @p3pp8

When I use our demo I see that everything is working properly. I send a local notification with data and tap the notification then I see my data correctly. If the problem persists, you can share a small project where we can reproduce the issue.

Screenshot

huseyinerenguler avatar Jan 19 '23 11:01 huseyinerenguler