-
Notifications
You must be signed in to change notification settings - Fork 1.9k
phonegap-plugin-push and firebase-analytics are not compatible together #2796
Comments
I'm dealing with the exact same problem myself, any luck finding a solution? |
please keep me posted. we need this fix urgent. thanks |
Hey, i dont know if this will help you but i also had an issue where different plugins where installing different versions of "cordova-support-google-services" during the build process. I found these 3 plugins that "force" cordova-support-google-services onto a single version which solved my issue. cordova-android-support-gradle-release I hope this helps. |
Hi guys, I tried the solution @Greg4572 proposed, but i couldn't get this plugins to work with Firebase. Do you guys have any news about this? System Info: Ionic: ionic (Ionic CLI) : 4.12.0 (/Users/elevasrl/.nvm/versions/node/v11.9.0/lib/node_modules/ionic) Cordova: cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1) System: Android SDK Tools : 26.1.1 (/Users/elevasrl/Library/Android/sdk) The output i get on building is this: Task :app:compileDebugJavaWithJavac FAILED ...... MORE ...... Do you guys have any other solutions for this? Thanks, |
@Greg4572 Would you mind sharing the config.xml part where your plugins/version/engine tags are listed? Thanks in advance. |
@Aggror I have attached my config.xml in a text file as i cant seem to be able to post it as a comment. Sorry if it looks like a mess, but it works so i try not to mess with it to much. I hope this helps you in some way. |
@Greg4572 First of: thank you for responding. That is always appreciated. |
@Aggror Great, I'm glad i could help out in some form. As for the window.FirebasePlugin issue you are experiencing, I haven't used the Firebase Plugin before so i cant help much with that. What i can suggest, is that if you are trying to access it on launch, make sure the device is ready before trying to call it. I hope you are able to find a solution for this. |
This thread has been automatically locked. |
Expected Behaviour
That you can install both together in same Project.
Actual Behaviour
Firstly both plugins depend on same plugin: "cordova-support-google-services"
"phonegap-plugin-push" needs "cordova-support-google-services@~1.1.0"
"firebase-analytics" needs "cordova-support-google-services@^1.3.0"
Secondly after installing one of them, no matter which, there comes this error (in my case on firebase)
Has anyone have done simiular expecience?
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
cordova-android: ^8.0.0
cordova-ios: ^5.0.1
cordova: 9.0.0
Plugin version
phonegap-plugin-push 2.2.3
cordova-plugin-firebase-analytics: 3.0.0
The text was updated successfully, but these errors were encountered: