onBackgroundMessage static method

void onBackgroundMessage()

Implementation

static void onBackgroundMessage() async{
  FirebaseApp app = await Firebase.initializeApp();
  print('Initialized default app $app from Android resource');
  FirebaseMessaging.onBackgroundMessage(_firebaseMessagingBackgroundHandler);
}