React-native-fcm: Build Failed: No matching client found for package name 'com.firechat' (firechat is my app name)

Created on 12 Oct 2016  路  7Comments  路  Source: evollu/react-native-fcm

Windows, Android App,
RN version: 0.35.0
react-native-fcm Version: 2.3.0

Using my device as emulator. The app was okay before configuration. Do I need to add my Firebase app name somewhere? Please help.

Best Regards,
Rajib

Most helpful comment

It's Solved By Me 15/11/2017

Seeing My Video:
https://www.youtube.com/watch?v=ePRcf_IgKc0&feature=youtu.be
Thanks For Watching...

All 7 comments

Check the package you used for your Firebase service and the one you're using for your java classes, they have to match.

Hi,
Thank you very much for your reply. But I didn't understand what you mean, I am a newbie :( I have installed firebase using "npm install firebase --save" command. I didn't change any java code without what is mentioned in this repository.
Which java class I have to change? Can you please explain a bit?

I'm not using firebase locally, I used it online.

What I meant for you to do is check the package your MainActivity.java and MainApplication.java are at. It has to be the same that is mentioned throughout your code.

For instance, AndroidManifest.xml has a property package in the manifest tag that also has to match the FCM config.

On iOS, your bundle id should also match the said package.

Android FCM config can be found in your google-services.json file.
iOS FCM config can be found in your GoogleService-Info.plist file.

I have deleted my current firebase app as it's name was different than my package name. So created new one with same id of app. Now build problem solved.

It's Solved By Me 15/11/2017

Seeing My Video:
https://www.youtube.com/watch?v=ePRcf_IgKc0&feature=youtu.be
Thanks For Watching...

It's Solved By Me 15/11/2017

Seeing My Video:
https://www.youtube.com/watch?v=ePRcf_IgKc0&feature=youtu.be
Thanks For Watching...

Thanks a lot, helped a lot! :D

It's Solved By Me 15/11/2017

Seeing My Video:
https://www.youtube.com/watch?v=ePRcf_IgKc0&feature=youtu.be
Thanks For Watching...

Thanks a lot, helped a lot! :D

You are welcome! Thank you so much

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sf577 picture sf577  路  3Comments

holyxiaoxin picture holyxiaoxin  路  4Comments

jitenderchand1 picture jitenderchand1  路  4Comments

andryuwka picture andryuwka  路  6Comments

prashant-gaurav picture prashant-gaurav  路  5Comments