Browse Source

Merge pull request #570 from nextcloud/fix/push-notifications

fix(neon): Fix not receiving push notifications
pull/578/head
Kate 1 year ago committed by GitHub
parent
commit
cdf7844df4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/neon/neon/lib/src/blocs/push_notifications.dart

2
packages/neon/neon/lib/src/blocs/push_notifications.dart

@ -34,6 +34,8 @@ class PushNotificationsBloc extends Bloc implements PushNotificationsBlocEvents,
unawaited(UnifiedPush.getDistributors().then(_globalOptions.updateDistributors)); unawaited(UnifiedPush.getDistributors().then(_globalOptions.updateDistributors));
_globalOptions.pushNotificationsEnabled.addListener(_pushNotificationsEnabledListener); _globalOptions.pushNotificationsEnabled.addListener(_pushNotificationsEnabledListener);
// Call the listener to update everything
unawaited(_pushNotificationsEnabledListener());
} }
} }

Loading…
Cancel
Save