diff --git a/Examples/simple-fcm-client/app/Listeners.js b/Examples/simple-fcm-client/app/Listeners.js index 0144e1f55ee357d441663b83e0c47f69ecf3300c..25e581fed2b45706dcc144d64e58fb01d408b3cd 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; } }