Open netinkumar opened 6 years ago
They work together you just have to find the compatible versions in platform android edit the project.properties
android.library.reference.1=CordovaLib
cordova.system.library.1=com.facebook.android:facebook-android-sdk:4.14.+
cordova.system.library.2=com.google.android.gms:play-services-auth:11.6.2
cordova.system.library.3=com.google.android.gms:play-services-identity:11.6.2
cordova.system.library.4=com.android.support:support-v13:26.+
cordova.system.library.5=me.leolin:ShortcutBadger:1.1.17@aar
cordova.system.library.6=com.google.firebase:firebase-messaging:11.6.2
cordova.gradle.include.1=phonegap-plugin-push/tayaryapp-push.gradle```
Just tried thousands of solutions, uninstalled and installed the plugin hundreds of time. Added google-services to the end of build.gradle, changed all versions to be the same. It still says that version 9.0.0 is needed.
Just sharing my disappointment
Same issue here
i'm sorry but my solution was more to the problem of using notification with google services like google plus or map or location causes problem, so solution is not specific for this package. I searched a lot for different solutions, so i thought I share it to latest issue. The main idea is that you need all your package to run on compatible versions I have this setting running for Android and iOS and version 9 is old now you should be using the latest unless there is specific reason for using older versions, (backward support or something) Here is my exact solution :
Plugins:
cordova-plugin-console 1.0.5 "Console"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-facebook4 1.7.4 "Facebook Connect"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googleplus 5.2.1 "Google SignIn"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-nativestorage 2.2.1 "NativeStorage"
cordova-plugin-splashscreen 4.0.1 "Splashscreen"
cordova-plugin-statusbar 2.4.1 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 2.1.3 "PushPlugin"
when you build you will have an error saying "Cannot support version +" , make sure you have copied your google-services.json file to the platform/android folder and change open the project.properties files and update the + to 11.6.2
android.library.reference.1=CordovaLib
cordova.system.library.1=com.facebook.android:facebook-android-sdk:4.14.+
cordova.system.library.2=com.google.android.gms:play-services-auth:11.6.2
cordova.system.library.3=com.google.android.gms:play-services-identity:11.6.2
cordova.system.library.4=com.android.support:support-v13:26.+
cordova.system.library.5=me.leolin:ShortcutBadger:1.1.17@aar
cordova.system.library.6=com.google.firebase:firebase-messaging:11.6.2
cordova.gradle.include.1=phonegap-plugin-push/tayaryapp-push.gradle
I hope this solves your problem it was really frustrating for me, so I'm willing to help as much as possible
ps. when it comes to testing notification with ios on your firebase portal use advanced mode and set key to notification
Hi,
I have this configuration and it does'nt works :(
target=android-27
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.system.library.1=com.facebook.android:facebook-android-sdk:4.38.1
cordova.system.library.3=com.google.firebase:firebase-messaging:11.6.2
cordova.gradle.include.1=cordova-plugin-fcm/creazap-FCMPlugin.gradle
cordova.system.library.4=com.google.android.gms:play-services-auth:11.6.2
cordova.system.library.5=com.google.android.gms:play-services-identity:11.6.2
cordova.system.library.6=com.android.support:support-annotations:26.+
cordova.system.library.7=com.android.support:support-v4:26.+
I am facing a big issue in ionic 2 app. Whenever Google plus and FCM plugins are used in ionic 2 app, it causes problem in building the app. I am not able to build my app and also i need both plugins. Kindly find me a solution for this, it would be greate help.