Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Update background channel name
Browse files Browse the repository at this point in the history
  • Loading branch information
kroikie committed Aug 21, 2019
1 parent 14ceed7 commit 806ce88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_messaging/lib/firebase_messaging.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ typedef Future<dynamic> MessageHandler(Map<String, dynamic> message);
@visibleForTesting
Future<void> 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();

Expand Down

0 comments on commit 806ce88

Please sign in to comment.