Untitled
unknown
plain_text
4 years ago
375 B
6
Indexable
Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {
await Firebase.initializeApp();
await DB.init();
RemoteNotification? notification = message.notification;
if(notification != null)
{
// Save
print(message.data);
}
}
FirebaseMessaging.onBackgroundMessage(_firebaseMessagingBackgroundHandler);
Editor is loading...