-
Notifications
You must be signed in to change notification settings - Fork 629
plugin not working with cordova-plugin-firebase #487
Comments
YES ! Thanks @Lucasq95 ! |
@Lucasq95 you are the man! |
I get still get this after adding the plugin to ionic 3 with firebase: FAILURE: Build failed with an exception.
BUILD FAILED in 2s
|
@Lucasq95 : I am also stuck at the firebase issue, this ain't working with firebase plugin, the login checker hangs without any alert error message, but I am using Phonegap Build, Kindly help me out on your solution to how to execute your solution on Phonegap Build. |
@matjazonline Did anyone found a solution ? |
did you try change project.properties ? by cordova.system.library.10=com.google.android.gms:play-services-auth:15.0.0 in Android project ? |
ok, i will try this one. also can you let me know how to implement this on phonegap build |
@MisaZ10 Is there possibility to define these versions via ionic/cordova? |
This worked for me too. I changed it to "+". If you want to make it so you don't have to manually change the project.properties in the platform/android folder every time you remove and add the platform, you can change the value of the same thing in plugins/cordova-plugin-googleplus/plugin.xml.
|
@matjazonline for your issue go to your project root folder and do this |
if you are using for build ionic pro platform or basically don't want to change this inside project.properties or cordova-plugin then you can use cordova-plugin-platform-replace plugin, all you need to add this plugin to your project
and then add to your config.xml
|
Thanks @Lucasq95 💯 your described solution worked for me! |
Thanks man, this saved my day |
@Lucasq95 Can you please confirm the versions of you both the plugins ie cordova-plugin-firebase. I am getting this build error message
|
@techno2mahi i haven't tried cordova-android-play-services-gradle-release so i dont know if its worth installing another package to manage versions. My advice is to keep it clean, uninstall both libraries and try installing them again and please show me what error the compiler throws. Just a comment: |
After 2 days trying to fix it I found a solution, in my case the following plugins caused a crash: cordova-admob-sdk, cordova-plugin-firebase and I changed manually the play-services-ads version in "project.properties" and "build.gradle" files from "com.google.android.gms:play-services-ads:+" to "com.google.android.gms:play-services-ads:16.0.0" |
@michalakjan Thank you so much for your suggestion, this worked perfectly for me. I know adding another dependency isn't the greatest thing to do... but I'm just trying to learn native Google Auth and this was the biggest pain in my ass until I found your solution. Thank you, sir. |
thanks for this |
This solved my problem also. Thanks :) |
I'm getting the same error as @matjazonline after manually changing the project properties to +. Any suggestions for those cases? |
I've encountered an issue when trying to work with this plugin and cordova-plugin-firebase.
I implemented googleplus login in my app and everything worked fine. The problem appeared when i added cordova-plugin-firebase to work with push notifications.
After adding firebase plugin when trying to login google's auth modal wasn't displayed and i had no error logged.
After some digging i found that in the android project.properties the following libraries where using old versions:
com.google.android.gms:play-services-identity:11.0.8
com.google.android.gms:play-services-auth:11.0.8
while all firebase libraries where using + version.
I changed play-services versions to + and everything worked.
I think that an update is needed on this versions in the plugin, cause they are very old compared to the latest release which is v 15.0.0 https://developers.google.com/android/guides/releases
The text was updated successfully, but these errors were encountered: