in , ,

A Flutter plugin to use the Firebase Cloud Messaging API

Firebase Messaging Plugin for Flutter

A Flutter plugin to use the Firebase Cloud Messaging API.

In modern life, chat messaging support is one of the most dynamic ways to communicate with all people around the world. With the message, you can turn every interaction with people into a building block for long relationships. Here, to learn and know more about Firebase Cloud Messaging, please visit the Firebase website .

Getting Started

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

Why flutter_fcm?

  • 🚀 Easy to use
  • ⚡ Supports local notification


The easiest way to use this library is via the top-level functions.

import 'package:flutter_fcm/flutter_fcm.dart';

class Messaging {
  static String token;
  static initFCM()async{
      await FCM.initializeFCM(
          onNotificationPressed: (Map<String, dynamic> data) {

          onTokenChanged: (String token) {
            Messaging.token = token;
          icon: 'icon'


Written by James

A social messaging App UX with Flutter

A Dart client for the NATS messaging system