Browse Source

fix(neon): Fix not receiving push notifications

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/570/head
jld3103 1 year ago
parent
commit
b90bcdc225
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  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));
_globalOptions.pushNotificationsEnabled.addListener(_pushNotificationsEnabledListener);
// Call the listener to update everything
unawaited(_pushNotificationsEnabledListener());
}
}

Loading…
Cancel
Save