-
Notifications
You must be signed in to change notification settings - Fork 320
Description
For our initial implementation of notification UI #122 (introduced in #344), we use the package flutter_local_notifications
. That's because it's what's currently recommended by Flutter upstream for showing a notification, and because I looked around a bit a few months ago and concluded that it was the best existing option for that.
As discussed at #344 (comment) and in chat, though, that package has quite a bit of baggage for functionality we'll never need, like timers. It also goes for an unfortunate pattern — reminiscent of React Native and its ecosystem, in fact — of providing a bunch of logic of its own, so that the API it presents is different from that of the underlying platform and adds its own quirks, bugs, and lack of documentation. For example, the issue I filed which is discussed at #344 (comment) .
So I don't find this package very satisfying, and I think it's likely that we'll ultimately want to rip it out in favor of something we write ourselves. The plan would be:
- Expose the platform APIs as thinly and faithfully as possible. Let the logic of deciding how to use those APIs stay in Dart.
- Use Pigeon to make the writing of those API bindings as easy and automated as possible.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status