my AndroidManifest is
in index i wrote
AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => firebaseBackgroundMessage);
that firebaseBackgroundMessage
is a function as below
export async function firebaseBackgroundMessage(message: RemoteMessage) {
let notif=message['data']; console.log(notif); return Promise.resolve();}
i getting fcm message in background and foreground state but
in closed state is not received any fcm message and in console log i have this error
No task registered for key RNFirebaseBackgroundMessage
any solution? thank a lot for your help ...
i have a make a mistake in config and i put
AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => firebaseBackgroundMessage);
in main.js page and it must be in index.js
and i do it i am so happy to fix it...
thanks to me :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With