A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux
2.47k
stars
1.4k
forks
source link
Docs mention iOS keeps the 64 notifications that will fire the soonest but it actually keeps the last 64 notifications set regardless of when they will fire #2275
This is not behaviour that is officially documented anywhere on Apple Developer docs but it is documented as a community bug report here.
Here is a sample app that reproduces the behaviour on the latest version of this package and the latest stable flutter release (3.19.3). It initializes the plugin and schedules 70 notifications every minute for the next 70 minutes, then gets the pending notifications and prints out the title. You'll see that notifications 7 to 70 is printed out rather than the expected 1 - 64.
First create a flutter project from scratch and do the following commands to add this package and the timezone package:
This is not behaviour that is officially documented anywhere on Apple Developer docs but it is documented as a community bug report here.
Here is a sample app that reproduces the behaviour on the latest version of this package and the latest stable flutter release (3.19.3). It initializes the plugin and schedules 70 notifications every minute for the next 70 minutes, then gets the pending notifications and prints out the title. You'll see that notifications 7 to 70 is printed out rather than the expected 1 - 64.
First create a flutter project from scratch and do the following commands to add this package and the timezone package:
Lastly, replace the contents of main.dart to this and run the app.