Added automatic refreshing of Notification token
This commit is contained in:
parent
c1c2c06873
commit
06e665ce2e
@ -47,7 +47,9 @@ class _AppState extends State<App> {
|
||||
});
|
||||
|
||||
if(Provider.of<SettingsProvider>(context, listen: false).val().notificationSettings.enabled) {
|
||||
FirebaseMessaging.instance.onTokenRefresh.listen((event) {
|
||||
NotifyUpdater.registerToServer();
|
||||
});
|
||||
}
|
||||
|
||||
FirebaseMessaging.onMessage.listen((message) => NotificationController.onForegroundMessageHandler(message, context));
|
||||
|
Loading…
x
Reference in New Issue
Block a user