Firebase Messaging Plugin for Flutter

A Flutter plugin to use the Firebase Cloud Messaging API.

To learn more about Firebase Cloud Messaging, please visit the Firebase website

pub package

Getting Started

To get started with Firebase Cloud Messaging for Flutter, please see the documentation.

Usage

To use this plugin, please visit the Cloud Messaging Usage documentation

iOS apps using UIScene

Apps that adopt the UIScene lifecycle register Flutter plugins after application:didFinishLaunchingWithOptions:. Apple requires UNUserNotificationCenter.delegate to be configured before that method returns, so configure Firebase Messaging explicitly from your app delegate:

#import <firebase_messaging/FLTFirebaseMessagingPlugin.h>

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  [FLTFirebaseMessagingPlugin configureNotificationCenterDelegate];
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

Issues and feedback

Please file FlutterFire specific issues, bugs, or feature requests in our issue tracker.

Plugin issues that are not specific to FlutterFire can be filed in the Flutter issue tracker.

To contribute a change to this plugin, please review our contribution guide and open a pull request.

Libraries

firebase_messaging