React-native-notifications: FCM Integration Android

Created on 11 Jan 2018  路  7Comments  路  Source: wix/react-native-notifications

Hello,
Can someone tell me how to integrate this libary with FCM, there is no word about it in Docs.
I followed: https://firebase.google.com/docs/cloud-messaging/android/client because GCM is getting depracated.
and: https://github.com/wix/react-native-notifications/blob/master/README.md
But got stuck on Step #2: Add Sender ID to Manifest File is there something equivalent for FCM to this:
<meta-data android:name="com.wix.reactnativenotifications.gcmSenderId" android:value="1234567890\0"/>
Right now im getting:
java.lang.IllegalStateException: Sender ID not found in manifest. Did you forget to add it as the value of a 'com.wix.reactnativenotifications.gcmSenderId' meta-data field?

Thanks in advance

Most helpful comment

Would be awesome if there was a medium article or something step by step for react-native push notification newbies and FCM - using this branch :(

All 7 comments

Thank you for answer i have seen Benjamin PR But had to be sure there is no other way since for some reason its still not merged.

@ShongSu I get stuck on step 2 "Integrate Firebase in your native Android project." here: https://github.com/Benjamin-Dobell/react-native-notifications/tree/android-overhaul#receiving-push-notifications

Is there any advice you can provide? Because we are RN we don't have a native android project.

Would be awesome if there was a medium article or something step by step for react-native push notification newbies and FCM - using this branch :(

I will give it a shot... @Noitidart

@AugustoAleGon did you?

@BenWildeman I do have completed successfully the integration. I still have to work on the article. What do you need?

Was this page helpful?
0 / 5 - 0 ratings