ben-xD / push

Push notifications in Flutter without firebase_messaging.
https://pub.dev/packages/push
37 stars 23 forks source link

feat: replace stream API with callback API #43

Closed ben-xD closed 9 months ago

ben-xD commented 9 months ago

This allows us to await handlers to avoid shutting app down too early. This also allows us to have multiple listeners for the same event (message, background message)

There is a dev release you can try: 2.0.0-dev.1. This would be released as 2.0.0 on 31st December

The API has been changed (see migration guide), and now looks like: https://github.com/ben-xD/push/blob/49a4a1e5978a65b023a7b005559f21f9633a906f/push/example/lib/main.dart#L82-L107