[FIX] Stop showing native push notification when in foreground (#4059)
This commit is contained in:
parent
e28f7ac4b6
commit
397cd3d9b8
|
@ -46,7 +46,7 @@ class PushNotification {
|
||||||
|
|
||||||
Notifications.events().registerNotificationReceivedForeground(
|
Notifications.events().registerNotificationReceivedForeground(
|
||||||
(notification: Notification, completion: (response: NotificationCompletion) => void) => {
|
(notification: Notification, completion: (response: NotificationCompletion) => void) => {
|
||||||
completion({ alert: true, sound: true, badge: false });
|
completion({ alert: false, sound: false, badge: false });
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue