diff --git a/packages/firebase_messaging/android/src/main/java/io/flutter/plugins/firebasemessaging/FirebaseMessagingPlugin.java b/packages/firebase_messaging/android/src/main/java/io/flutter/plugins/firebasemessaging/FirebaseMessagingPlugin.java index 38a35213aba0..42cd2f62eb8e 100644 --- a/packages/firebase_messaging/android/src/main/java/io/flutter/plugins/firebasemessaging/FirebaseMessagingPlugin.java +++ b/packages/firebase_messaging/android/src/main/java/io/flutter/plugins/firebasemessaging/FirebaseMessagingPlugin.java @@ -42,7 +42,7 @@ public static void registerWith(Registrar registrar) { final MethodChannel channel = new MethodChannel(registrar.messenger(), "plugins.flutter.io/firebase_messaging"); final MethodChannel backgroundCallbackChannel = - new MethodChannel(registrar.messenger(), "plugins.flutter.io/android_fcm_background"); + new MethodChannel(registrar.messenger(), "plugins.flutter.io/firebase_messaging_background"); final FirebaseMessagingPlugin plugin = new FirebaseMessagingPlugin(registrar, channel); registrar.addNewIntentListener(plugin); channel.setMethodCallHandler(plugin); diff --git a/packages/firebase_messaging/lib/firebase_messaging.dart b/packages/firebase_messaging/lib/firebase_messaging.dart index d62b85279b9d..794aa9980a70 100644 --- a/packages/firebase_messaging/lib/firebase_messaging.dart +++ b/packages/firebase_messaging/lib/firebase_messaging.dart @@ -23,7 +23,7 @@ typedef Future MessageHandler(Map message); @visibleForTesting Future fcmSetupBackgroundChannel( {MethodChannel backgroundChannel = const MethodChannel( - 'plugins.flutter.io/android_fcm_background')}) async { + 'plugins.flutter.io/firebase_messaging_background')}) async { // Setup Flutter state needed for MethodChannels. WidgetsFlutterBinding.ensureInitialized();