ft_engage_firebase 0.12.0
ft_engage_firebase: ^0.12.0 copied to clipboard
Firebase Cloud Messaging push source for the FT.Engage Flutter SDK. Reads the notification permission and the FCM token, and re-registers when the token changes.
ft_engage_firebase #
Firebase Cloud Messaging push source for the FT.Engage Flutter SDK.
final engage = await FtEngage.init(
publicKey: const String.fromEnvironment('ENGAGE_KEY'),
endpoint: Uri.parse('https://your-api.example.com'),
pushSource: FirebasePushSource(),
);
await engage.requestPushPermission();
See docs/push.md for what is sent, iOS notes and how to write your own source.
Apache-2.0.