Closed andreystavitsky closed 1 year ago
FirebaseMessaging.onMessage.listen((RemoteMessage message) {
print('Got a message whilst in the foreground!');
YourModel(text: message.test).save();
});
Please open these kind of questions in Discussions
I need some widgets to reflect changes immediately when FCM message received. Is there anything to trigger synchronization of repository?