dartway_push_flutter
Push notifications for a DartWay app, reached as dw.plugins.push. No vendor SDK: add
dartway_push_firebase and/or dartway_push_rustore.
plugins: [DwSharedPreferences(), DwPush(transports: [DwRuStorePush(), DwFirebasePush(webVapidKey: key)])],
- registers the device token with the server whenever the token or the signed-in account changes, once per pair; a sign-out needs no call (the server binds the device to the session key);
requestPermission(),permission(),pause()/resume();opened— notifications the user opened, with the typed payload (payloadAs<T>()) and link; the one that started the app waits for the first listener;received— those that arrived on screen.
package:dartway_push_flutter/testing.dart has DwFakePushTransport for widget tests.
Documentation: docs/3-flutter/push-notifications.md.
Libraries
- dartway_push_flutter
- Push notifications for a DartWay app, reached as
dw.plugins.push. The vendor SDKs live in the transport packages:dartway_push_firebase,dartway_push_rustore. - testing
- Testing an app's push without a vendor SDK: a transport the test drives.