Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCM to FCM #37

Open
Maheshvy opened this issue May 17, 2019 · 0 comments
Open

GCM to FCM #37

Maheshvy opened this issue May 17, 2019 · 0 comments

Comments

@Maheshvy
Copy link

Hi ,

We are using the below plugin for FCM push notification and related to FCM this plugin is not updated or not i'm not sure , but this plugin is not working for FCM , after fallowing some stack-overflow i resolved the issue with below code .

plugin - https://github.com/mallzee/phonegap-localytics-plugin

plugin gradle file :

dependencies {
compile 'com.android.support:support-v4:26.0.2'
compile 'com.google.android.gms:play-services-ads:11.4.2'
// GCM to FCM migration below line of code not required
//compile 'com.google.android.gms:play-services-gcm:11.4.2'
compile 'com.localytics.android:library:5.4.0'
compile "com.google.firebase:firebase-messaging:11.4.2"
}

Android gradle file :

apply plugin: 'com.google.gms.google-services' –( This is mandatory line which you suggested )
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

please add the below line inside the function .

classpath 'com.google.gms:google-services:4.0.2'

dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}

Please let me know the process is correct or not which i fallowed .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant