Closed Scombr0 closed 5 years ago
I have a solution which involves a pull request I submitted to Cordova-plugin-fcm, which I'll document here Friday when I return from vacation;
Actually, the steps are documented in my pull request there at Cordova-plugin-fcm
So, following those steps i'll be able fix it and to use them both? At least until that fix merges with master?
It is required that they merge my PR or you fork their plugin and apply my PR yourself.
you must follow the exact steps in that PR
What about those hooks in config.xml and scripts in platforms/android? All I see is 1 modified file.. not much.
I'm sorry, i'm kinda new and really need this to work :)
There are 3 steps documented there. Simply Follow each step exactly.
So, I did all the steps in that PR, and also included your fix into my fork :)
But now i'm getting this error in app-FCMPlugin.gradle.
* What went wrong:
A problem occurred evaluating script.
> Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
> For input string: "+"
Couldn't make it work, and timing isn't good for a wait in merging that pull request. Ended up changing to plugin https://github.com/arnesson/cordova-plugin-firebase. Both plugins work together with no conflicts.
Btw, great job on this plugin @christocracy.
I suggest everyone avoid using cordova-plugin-fcm and find an alternative.
Clearly this plugin has little support.
I have this problem with intercom & your plugin
@elmbrent Start here
Chris is there any chance I can contact you for freelance job to fix the intercom plugin with yours?
This would include us buying a license to :)
Paste your platforms/android/project.properties
target=android-27 android.library.reference.1=CordovaLib android.library.reference.2=app cordova.system.library.1=com.android.support:support-v4:24.1.1+ cordova.gradle.include.1=cordova-plugin-intercom/online-intercom.gradle cordova.gradle.include.2=cordova-plugin-intercom/online-build-extras-intercom.gradle cordova.system.library.2=com.onesignal:OneSignal:3.10.8 cordova.gradle.include.3=onesignal-cordova-plugin/online-build-extras-onesignal.gradle
This is without cordova-background-geolocation-lt
Android support libraries' major version is supposed to correspond to your target=android-27
.
Your problem is one of your plugin importing a very old version of:
com.android.support:support-v4:24.1.1+
target=android-27
android.library.reference.1=CordovaLib
android.library.reference.2=app
-cordova.system.library.1=com.android.support:support-v4:24.1.1+
+cordova.system.library.1=com.android.support:support-v4:27.+
cordova.gradle.include.1=cordova-plugin-intercom/online-intercom.gradle
cordova.gradle.include.2=cordova-plugin-intercom/online-build-extras-intercom.gradle
cordova.system.library.2=com.onesignal:OneSignal:3.10.8
cordova.gradle.include.3=onesignal-cordova-plugin/online-build-extras-onesignal.gradle
This is from the cordova-plugin-camera, we need this functionality in are app, we are using the latest.
When I remove the camera I still get the same issue `* What went wrong: Execution failed for task ':app:processDebugGoogleServices'.
Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.+.`
target=android-27 android.library.reference.1=CordovaLib android.library.reference.2=app cordova.gradle.include.1=cordova-plugin-background-fetch/online-build.gradle cordova.system.library.1=com.google.android.gms:play-services-location:16.+ cordova.system.library.2=com.android.support:appcompat-v7:27.+ cordova.system.library.3=com.squareup.okhttp3:okhttp:3.12.+ cordova.system.library.4=org.greenrobot:eventbus:3.0.0 cordova.system.library.5=com.intentfilter:android-permissions:1.0.43 cordova.system.library.6=org.slf4j:slf4j-api:1.7.25 cordova.system.library.7=com.github.tony19:logback-android:1.3.0-2 cordova.gradle.include.2=cordova-background-geolocation-lt/online-build.gradle cordova.gradle.include.3=cordova-plugin-intercom/online-intercom.gradle cordova.gradle.include.4=cordova-plugin-intercom/online-build-extras-intercom.gradle cordova.system.library.8=com.onesignal:OneSignal:3.10.8 cordova.gradle.include.5=onesignal-cordova-plugin/online-build-extras-onesignal.gradle
intercom is screwed, hard-coding firebase-messaging:11.+
.
Google did a big split of Play Services & Firebase a few months back. It used to be the case that one would provide a common version between the two.
Now Firebase and Play-services dependencies are independent of each other. firebase-messaging
did the split at v15.0.0
(notice the jump from 12.0.1
-> 15.0.0
). Intercom needs to get with the program and provide a config variable to allow you to provide your own version (and they should be defaulting to latest available version, which is 18.0.0
.
Any chance you can create a fork and fix this or can I do this and change to 18 or is it not that simple? Is this something I can hire you for?
My rate is $300/hour. It will take at least 2 hours.
Let me talk to my boss and get back to you, whats the best email to get you on?
I've added you onto skype @ christocracy@gmail.com I've got confirmation to get you to build
@elmbrent I need you to create a Hello World project that produces the error. I've added the following plugins into my own Hello World and it builds:
$ cordova plugins
cordova-background-geolocation-lt 3.0.5 "BackgroundGeolocation"
cordova-plugin-background-fetch 5.4.1 "CDVBackgroundFetch"
cordova-plugin-cocoalumberjack 0.0.4 "CocoaLumberjack"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-intercom 6.2.0 "Intercom"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
onesignal-cordova-plugin 2.4.7 "OneSignal Push Notifications"
Your Environment
cordova -v
): 7.0.1cordova platform ls
): Installed platforms: android 6.2.3 Available platforms: blackberry10 ~3.8.0 (deprecated) browser ~4.1.0 ios ~4.4.0 osx ~4.0.1 webos ~3.7.0Expected Behavior
It should build the application.
Actual Behavior
It throws an error wether I use
ionic cordova build android
orionic cordova run android --target=<id>
Steps to Reproduce
ionic cordova plugin add cordova-plugin-fcm
ionic cordova plugin add https://github.com/transistorsoft/cordova-background-geolocation-lt.git
ionic cordova build android
Context
I'm trying to build the application. Nothing else.
Debug logs
This are the logs from console when trying to build android platform:
We are really interested in this plugin, but we need to make this 2 plugins to work. How can I solve this gradle conflicts?
PS: Everything works as expected when I remove
cordova-plugin-fcm
. Same if I remove this plugin and leavecordova-plugin-fcm
installed.Thanks for your time, I hope you can help me here, we are really interested in this plugin.