From 58ed2d29c81de6d9be6f1c5a74d43f58a89f7896 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Thu, 18 Jan 2018 11:45:20 -0500 Subject: [PATCH] Update Listeners.js --- Examples/simple-fcm-client/app/Listeners.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Examples/simple-fcm-client/app/Listeners.js b/Examples/simple-fcm-client/app/Listeners.js index 0144e1f..25e581f 100644 --- a/Examples/simple-fcm-client/app/Listeners.js +++ b/Examples/simple-fcm-client/app/Listeners.js @@ -42,6 +42,8 @@ export function registerAppListener(){ break; case NotificationType.WillPresent: notif.finish(WillPresentNotificationResult.All) //other types available: WillPresentNotificationResult.None + // this type of notificaiton will be called only when you are in foreground. + // if it is a remote notification, don't do any app logic here. Another notification callback will be triggered with type NotificationType.Remote break; } } -- 2.26.2