Ionic Native GooglePlus login fails without any error
Finally, the root cause and solution was found. The issue happened because Google updated all com.google.android.gms:play-* modules and this affected all Google services cordova plugins.
If you are using only Google Plus plugin, then everything should be fine I think.
In other case, all dependencies in project.properties, plugin.xml files to com.google.android.gms:play-*
should be replaced with older version 11.8.0:
was
com.google.android.gms:play-services-auth:+
should be
com.google.android.gms:play-services-auth:11.8.0
I know, that this is better to be called a workaround, but no other solutions work.
Thanks guys from:
https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/492
https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/484
https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/488
UPDATE 08.10.2018
After last updates, plugin is again not working. The issue happened because of conflict of versions of ``com.google.android.gms:play-services-:`.
For instance, com.google.android.gms:play-services-maps:15.0.1
, used by Google Maps plugin, and com.google.android.gms:play-services-auth:11.8.0
used by Google Plus plugin.
Solution is then straightforward:
- In
config.xml
put<variable name="PLAY_SERVICES_VERSION" value="15.0.1" />
(instead of15.0.1
there could be newer/older version) to every plugin, which uses play services - normally all plugins related to Google services. - In
platforms/android/project.properties
use everywhere for play services version15.0.1
(here should version the same as in point 1).
Thank you heroin for the answer. My problem was with:
1) com.google.android.gms:play-services-tagmanager:+
2) com.google.android.gms:play-services-auth:11.8.0
3) com.google.android.gms:play-services-identity:11.8.0
What I did to fix it was as heroin suggested, but instead I delete the 11.8.0 for 2) and 3) and just replaced it with the "+". Then I went into the config.xml found the:
variable name="PLAY_SERVICES_VERSION" value="11.8.0"
as heroin suggested, then replaced the "11.8.0" with "+". Re-compiled and ran, and now google plus works again.
I tried to change the android/project.properties, the lines with google_auth and identity to
cordova.system.library.5=com.google.android.gms:play-services-auth:+
cordova.system.library.6=com.google.android.gms:play-services-identity:+