From 397cd3d9b8f6f8403ac6d015981c3c98a67d301a Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 14 Apr 2022 15:24:04 -0300 Subject: [PATCH] [FIX] Stop showing native push notification when in foreground (#4059) --- app/lib/notifications/push.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/notifications/push.ts b/app/lib/notifications/push.ts index 5dadbda82..436506a2e 100644 --- a/app/lib/notifications/push.ts +++ b/app/lib/notifications/push.ts @@ -46,7 +46,7 @@ class PushNotification { Notifications.events().registerNotificationReceivedForeground( (notification: Notification, completion: (response: NotificationCompletion) => void) => { - completion({ alert: true, sound: true, badge: false }); + completion({ alert: false, sound: false, badge: false }); } );