Const
Registers a listener that will be triggered when a notification is received while app is in a foreground state.
A callback handler to be invoked with the received PushNotificationMessage.
// Register a listeneronNotificationReceivedInForeground(message => { doSomething(message);}); Copy
// Register a listeneronNotificationReceivedInForeground(message => { doSomething(message);});
// Register multiple listenersonNotificationReceivedInForeground(message => { doSomething(message);});onNotificationReceivedInForeground(message => { doSomethingElse(message);}); Copy
// Register multiple listenersonNotificationReceivedInForeground(message => { doSomething(message);});onNotificationReceivedInForeground(message => { doSomethingElse(message);});
Registers a listener that will be triggered when a notification is received while app is in a foreground state.