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

Plugin is not working in AndroidX version #652

Open
jithinkumarvs opened this issue Jun 13, 2021 · 1 comment
Open

Plugin is not working in AndroidX version #652

jithinkumarvs opened this issue Jun 13, 2021 · 1 comment

Comments

@jithinkumarvs
Copy link

Hi Extert,

Plugin is failing in AndroidX version, Please apply the below fix.

Plugin Name: "cordova-plugin-fcm"

Correction 1: In FCMPluginActivity.java:
Old : import android.support.v4.content.LocalBroadcastManager;
Need to be replaced with : import androidx.localbroadcastmanager.content.LocalBroadcastManager;

Correction 2: In MyFirebaseMessagingService.java:
Old : import android.support.v4.app.NotificationCompat;
Need to be replaced with : import androidx.core.app.NotificationCompat;

Thanks,
Jithin

@ihasanmdarif
Copy link

ihasanmdarif commented Sep 8, 2023

Try adding this plugin cordova-plugin-androidx-adapter

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

2 participants