You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to modify the notification title and the body at run time and pass that OSNotification object to notificationEvent.complete(modified) but it's not working it shows the old notification the one without modification
I am using onesignal_flutter: ^3.5.1
Steps to reproduce?
1. install onesignal_flutter: ^3.5.1
2. push your notification from the dashboard
3. when you receive a notification at the mobile end modify it like this
final modified = osNotificationModifier.toOpportunityLaunchNotification(
notification,
obj: toAppNotification,
);
toAppNotification is my object toOpportunityLaunchNotification function successfully returns the new OSNotification
4. notificationEvent.complete(modified);
this will show the un-modified notification
What did you expect to happen?
It should show the modified notification, but it shows an un-modified notification
OneSignal Flutter SDK version
onesignal_flutter: ^3.5.1
Which platform(s) are affected?
iOS
Android
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
FakharAlyas119
changed the title
[Bug]: Push Notification at run time is not working
[Bug]: Push Notification Modification at run time is not working
Dec 7, 2023
What happened?
I am trying to modify the notification title and the body at run time and pass that
OSNotification
object tonotificationEvent.complete(modified)
but it's not working it shows the old notification the one without modificationI am using
onesignal_flutter: ^3.5.1
Steps to reproduce?
What did you expect to happen?
It should show the modified notification, but it shows an un-modified notification
OneSignal Flutter SDK version
onesignal_flutter: ^3.5.1
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: