You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onInit(){
Push.instance.addOnMessage((message) {
log('RemoteMessage received while app is in foreground:\n''RemoteMessage.Notification: ${message.notification} \n'' title: ${message.notification?.title.toString()}\n'' body: ${message.notification?.body.toString()}\n''RemoteMessage.Data: ${message.data}');
showMaterialBanner(message.toString());
});
Push.instance.addOnBackgroundMessage((message) {
log('RemoteMessage received while app is in background:\n''RemoteMessage.Notification: ${message.notification} \n'' title: ${message.notification?.title.toString()}\n'' body: ${message.notification?.body.toString()}\n''RemoteMessage.Data: ${message.data}');
_showMaterialBanner(message.toString());
});
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: