click_action handling on ios #11380
Unanswered
manujjagga421
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Below is the payload of notification i am sending
"notification":{ "title":"title", "body":"message", "sound": "default", "click_action":"11" }, "data": { "data":{ "title":"title", "message":"message", "type":3, } }
i am send click_action 11 for which i have already defined DarwinNotificationCategory with 2 actions as follows
final List<DarwinNotificationCategory> darwinNotificationCategories = <DarwinNotificationCategory>[ DarwinNotificationCategory( '11', actions: <DarwinNotificationAction>[ DarwinNotificationAction.plain( 'apply', 'Apply', options: <DarwinNotificationActionOption>{ DarwinNotificationActionOption.foreground, }, ), DarwinNotificationAction.plain( 'save', 'Save', options: <DarwinNotificationActionOption>{ DarwinNotificationActionOption.foreground, }, ), ], ), ];
when i recieve the remote notification on ios actions are correctly being displayed and on tap of notification i am getting callback in onMessageOpenedApp() but i am not able to identify which action was clicked by user. How can i handle this?
Beta Was this translation helpful? Give feedback.
All reactions