-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: support setWhen
#596
Comments
If there's a feature you need, it'd be great if you submit a PR for it :) |
nioncode
added a commit
to nioncode/flutter_local_notifications
that referenced
this issue
Apr 24, 2020
nioncode
added a commit
to nioncode/flutter_local_notifications
that referenced
this issue
Apr 24, 2020
nioncode
added a commit
to nioncode/flutter_local_notifications
that referenced
this issue
Apr 24, 2020
nioncode
added a commit
to nioncode/flutter_local_notifications
that referenced
this issue
Apr 24, 2020
MaikuB
added a commit
that referenced
this issue
Apr 25, 2020
…tifications (#598) * add support for `setWhen` on Android notifications Closes #596. * update API doc for when property in AndroidNotificationDetails * add test for when a timestamp is specified for an Android notification Co-authored-by: Michael Bui <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be great if the plugin would support the setWhen method for the notification to set a custom timestamp for the notification.
This is especially important if you have multiple notifications displayed at the same time (e.g. one per download) and update them independently. Then, whichever notification gets updated last will be moved to the left-most side in the status bar. When the other notification updates, this one will be moved to the left and the notifications will swap places all the time, which looks quite weird.
To fix this, it should be possible to set a fixed timestamp for each of the notifications (e.g. the time of the first creation of the notification) in order to keep the notifications in the initial order (see https://stackoverflow.com/questions/31574474/stop-sorting-android-notifications).
The text was updated successfully, but these errors were encountered: