Nupur
Nupur

Reputation: 163

Ionic: No matching client found for package name org.apache.cordova (Firebase)

I am new to ionic1 framework and working on sidemenu ionic app. I am trying to make push notifications work through Firebase, with cordova-plugin-fcm for this, I have installed Firebase using

cordova plugin add [email protected] --save

plugin in my app.

when I run ionic run android, it gives build failure error:

Execution failed for task ':CordovaLib:processDebugGoogleServices'. No matching client found for package name org.apache.cordova

I have searched a lot, but not getting any solutions. Also, I have the same package name in my app config file and google-services.json file.

Please help me. I really need this.

Upvotes: 8

Views: 8266

Answers (2)

labago
labago

Reputation: 1346

You need to follow this tutorial and end up adding a generated google-services.json file to the root of your project

Upvotes: 0

RobinFrcd
RobinFrcd

Reputation: 5426

I know it's old but if someone has the same problem, check that your widget id in config.xml and package_name in google-services.json are the same.

Upvotes: 20

Related Questions