Skip to content

Commit b28ec83

Browse files
committed
fix(notifications): implement missing onTokenRefreshed stream
Add the missing override for the onTokenRefreshed stream in the NoOpPushNotificationService class. This ensures the class now provides an implementation for all required members of the PushNotificationService interface, including a no-op implementation for the token refresh functionality.
1 parent eba2604 commit b28ec83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/notifications/services/no_op_push_notification_service.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class NoOpPushNotificationService extends PushNotificationService {
4242
Stream<PushNotificationPayload> get onMessageOpenedApp =>
4343
const Stream.empty();
4444

45+
@override
46+
Stream<String> get onTokenRefreshed => const Stream.empty();
47+
4548
@override
4649
Future<PushNotificationPayload?> get initialMessage async => null;
4750

0 commit comments

Comments
 (0)