I am using Ionic2 framework and my app requires Google Login and fcm to receive notifications.
I first integrated the Google Social Login using google plus native plugin and it was working perfectly fine. Then, on adding fcm I received following errors:
Found com.google.android.gms:play-services-location:11.+, but version 9.0.0 is needed for the google-services plugin.
Found com.google.android.gms:play-services-auth:11.8.0, but version 9.0.0 is needed for the google-services plugin.
Found com.google.android.gms:play-services-identity:11.8.0, but version 9.0.0 is needed for the google-services plugin.
:processArmv7DebugGoogleServices
FAILED
Because of the version conflict, I upgraded it to 9.0.0 and fcm is working fine now but the Google Login seems to have stopped working. I am receiving not even an error. The function leads to nothing.
Can anyone tell me a way to integrate Google Login + FCM together in an Ionic 2 project?
try to change this file under fcm plugin directory
/plugins/cordova-plugin-fcm/src/android/FCMPlugin.gradle
Then
then change this file /platforms/android/project.properties (removing + with 11.4.2)
Then build