flutter_local_notifications icon indicating copy to clipboard operation
flutter_local_notifications copied to clipboard

[flutter_local_notifications] solves the expected behavior for 'didNotificationLaunchApp'

Open mdAlvarenga opened this issue 2 years ago • 1 comments

Condition added to avoid 'didNotificationLaunchApp=true' when opening app from recent apps list in Android. Related to #1926 By @leotdev & @ximena-bogado

mdAlvarenga avatar Nov 08 '23 14:11 mdAlvarenga

Thanks for the PR. Unfortunately this introduces an issue where on Android, subsequent calls to getNotificationAppLaunchDetails() returns information to indicate that the app wasn't launched from a notification and this would happen even if the app wasn't put in the background and resumed later on. This results in inconsistent behaviour on iOS and macOS. The approach used by you used seems to be to essentially consume the notification once read. If this is to be done, then I would say that the PR should change to make this a behaviour that the user can opt-into e.g. update getNotificationAppLaunchDetails() to take a consumeNotification boolean argument and implement the expected behaviour on all the supported platforms. Is this something you can do as part of the PR?

MaikuB avatar Jan 13 '24 07:01 MaikuB