Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

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';

class messaging {
  static string token;
  static initfcm()async{
    try{
      await fcm.initializefcm(
          onnotificationpressed: (map<string, dynamic> data) {

          },
          ontokenchanged: (string token) {
            messaging.token = token;
            print(token);
          },
          icon: 'icon'
      );
    }catch(e){}
  }
}

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.