Untitled
unknown
plain_text
3 years ago
375 B
3
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...