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
Describe the bug
didNotificationLaunchApp returns false, and the payload is empty if the app was in a terminated state and the user clicked on the DarwinNotificationAction. Keep in mind that Android works as expected for similar steps. I encountered with issue only on iOS..
I added buttons to a category during app initialization. For example, the active_leak category has two buttons. Please take a look code below.
Open the app at least once.
Allow notifications for the app.
Minimize the app and swipe it away (Terminate state – the app is not running in the background or in the list of active apps).
Send a push notification via APNs, where the category matches the one from step 1: "category": "active_leak".
Receive the push notification.
Tap on one of the buttons.
The app opens.
getInitialMessage(https://pub.dev/packages/firebase_messaging) returns null and even final NotificationAppLaunchDetails? notificationAppLaunchDetails = await notificationsPlugin.getNotificationAppLaunchDetails().didNotificationLaunchApp returns false
Expected behavior
didNotificationLaunchApp should return true, and the payload should not be empty if the app was opened using DarwinNotificationAction. Isn't that correct?
I am using the Postman to sent Pushes on my device.
That is my JSON for Postman call. Feel free to check https://stackoverflow.com/a/62670409/21734721 how to grab Bearer token from Google for Postman. Sample code to send push via the Postman
Describe the bug
didNotificationLaunchApp returns false, and the payload is empty if the app was in a terminated state and the user clicked on the DarwinNotificationAction.
Keep in mind that Android works as expected for similar steps. I encountered with issue only on iOS..
To Reproduce
Expected behavior
didNotificationLaunchApp should return true, and the payload should not be empty if the app was opened using DarwinNotificationAction. Isn't that correct?
That is how I add the ActionButtons using the flutter_local_notifications library
I am using the Postman to sent Pushes on my device.
That is my JSON for Postman call. Feel free to check https://stackoverflow.com/a/62670409/21734721 how to grab Bearer token from Google for Postman.
Sample code to send push via the Postman
The text was updated successfully, but these errors were encountered: