flutter_fcm 0.0.2 copy "flutter_fcm: ^0.0.2" to clipboard
flutter_fcm: ^0.0.2 copied to clipboard

outdated

Firebase Cloud Messaging (FCM) Flutter package.

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

Getting Started #

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

Why flutter_fcm? #

  • 🚀 Easy to use
  • ⚡ Supports local notification

Usage #

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

import 'package:flutter_fcm/flutter_fcm.dart';

init()async{
  try{
    await FCM.initializeFCM(
      onData: (Map<String, dynamic> data) {
        print(data);
      },
      onTokenChanged: (String token) {
        print(token);
      },
      icon: 'stem_cells'
    );
  }catch(e){}
}