Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase SDK conflicts with (FCM and Firebase Analytics) #51

Closed
mailtoamirjohn opened this issue Oct 23, 2017 · 5 comments
Closed

Firebase SDK conflicts with (FCM and Firebase Analytics) #51

mailtoamirjohn opened this issue Oct 23, 2017 · 5 comments

Comments

@mailtoamirjohn
Copy link

Using following plugins together.

cordova-plugin-fcm ,

cordova plugin add cordova-plugin-firebase-analytics --save

and cordova plugin add cordova-plugin-googleplus.

ISSUE: After adding all the plugins FCM notification not works.

But all the three plugin works fine independent projects.

Getting some conflicts after integrating together.

I think some problem in different version of firebase and google plugin.

@mailtoamirjohn mailtoamirjohn changed the title cordova fcm plugin and Firebase SDK conflicts with (FCM and Firebase Analytics) Oct 23, 2017
@airstep
Copy link

airstep commented Nov 5, 2017

+1 same

@ghost
Copy link

ghost commented Nov 7, 2017

I am also experiencing the same. I also posted under issue #50.

When I run:
cordova build android
I get the following:
What went wrong: A problem occurred configuring root project android. Cannot add task :processDebugGoogleServices' as a task with that name already exists.

I am attempting to use Firebase Analytics (cordova-plugin-firebase-analytics) which requires the plugin, Google Services (cordova-support-google-services). I am also using Firebase Cloud Messaging (cordova-plugin-fcm). The cordova-plugin-fcm includes Google Services 3.0.0 and the cordova-support-google-services has Google Services at 3.1.0 creating the conflict.

I am new to using Ionic 3/Angular 4. A fix I had found on a different forum, and implemented, was changing the version in platforms/android/cordova-support-google-services to 3.0.0 from 3.1.0. This was only a temporary fix, and a Sr. Dev on my team said this was terrible and should never be done. Of course, I do not want to do something that is a bad practice, however, what this error informed me of is that if I can get the dependencies at the same version, then the conflict resolves and the project builds.

Any guidance you can offer would be extremely helpful.

Thank you!

@chemerisuk
Copy link
Owner

The conflict will be fixed after merging of fechanique/cordova-plugin-fcm#495

@dimitri320
Copy link

Conflict was not fixed! I'm still getting it....

@Saloni3187
Copy link

There is google play services compatibility issue with both the plugins.
Has anybody find the solution for the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants