1

I have read the FCM firebase documentation for react native and I want to implement the FCM background on react native android.

But I'm still a little confused by the documentation

my code:

// @flow
import firebase from 'react-native-firebase';
// Optional flow type
import type { RemoteMessage } from 'react-native-firebase';

export default async (message: RemoteMessage) => {
    // handle your message

    return Promise.resolve();
}
AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => bgMessaging); 

How to trigger and implement it, Please help, thank you very much.

zidniryi
  • 1,212
  • 3
  • 15
  • 36

0 Answers0