Commit 58ed2d29 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Update Listeners.js

parent 5232fede
...@@ -42,6 +42,8 @@ export function registerAppListener(){ ...@@ -42,6 +42,8 @@ export function registerAppListener(){
break; break;
case NotificationType.WillPresent: case NotificationType.WillPresent:
notif.finish(WillPresentNotificationResult.All) //other types available: WillPresentNotificationResult.None 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; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment