feat: check exception in listen notifications use cases
This commit is contained in:
parent
2b0fa4b578
commit
f4972e629d
@ -38,6 +38,10 @@ class ListenNotification extends StreamUseCase<NoParam, RemoteNotification> {
|
||||
if (notificationStreamResponse.isOk) {
|
||||
notificationStream = notificationStreamResponse.ok;
|
||||
} else if (notificationStreamResponse.isErr) {
|
||||
if (notificationStreamResponse.err! is UnimplementedError) {
|
||||
return Err(notificationStreamResponse.err!);
|
||||
}
|
||||
|
||||
final notificationBackgroundStreamResponse =
|
||||
await _notificationRepository.onNotificationBackground();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user