Firebase Cloud Messaging (FCM) Flutter package.

Overview

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){}
  }
}
You might also like...

A powerful Flutter chat UI component library and business logic for Tencent Cloud Chat, creating seamless in-app chat modules for delightful user experiences.

A powerful Flutter chat UI component library and business logic for Tencent Cloud Chat, creating seamless in-app chat modules for delightful user experiences.

style .button-9 { appearance: button; backface-visibility: hidden; background-color: #1d52d9; border-radius: 6px; border-width: 0; box-shadow: rgba(

Aug 11, 2023

Task management app with flutter, firebase firestore, and firebase auth

to_do_list A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if th

Mar 3, 2022

Ecommerce-App-with-firebase - Ecommerce App With Firebase and Flutter

Ecommerce-App-with-firebase - Ecommerce App With Firebase and Flutter

Samir Online Store Samir Online Store Samir Online Store Samir Online Store Down

Dec 24, 2022

Dio desafio chatonline flutter firebase - Developing an Online Chat Application Integrated with Firebase

Dio desafio chatonline flutter firebase - Developing an Online Chat Application Integrated with Firebase

Desenvolvendo um aplicativo de Chat Online integrado ao Firebase Descrição Neste

Jan 4, 2022

Self Host Group Chat App (firebase + clean architecture) is full functional group chat where you can create new groups and update profile and communicate in different groups easily. there 2 auth firebase method [Google & Email Password]

Self Host Group Chat App (firebase + clean architecture) is full functional group chat where you can create new groups and update profile and communicate in different groups easily. there 2 auth firebase method [Google & Email Password]

Self Host Group Chat App (firebase + clean architecture) Show some and star the repo to support the project Screenshots Packages we are using: flutter

Jan 8, 2023

A Flutter project that implemented getx package and firebase services.

A Flutter project that implemented getx package and firebase services.

Get X Firebase A Flutter Package that implemented firebase services with getx package. It's free, open source, complete, rapid development package for

Nov 26, 2022

A Flutter package to simplify firebase authentication.

firebase_authentication A Flutter package to simplify firebase authentication. Development State This is in a very, very early stage. It's a draft bas

Apr 24, 2022
Comments
  • Implement FCM Best Practice Recommendations

    Implement FCM Best Practice Recommendations

    Any plans for token management via cloud firestore? Proposing a firestore structure that could be used by other apps? Deleting stale tokens etc.

    https://firebase.google.com/docs/cloud-messaging/manage-tokens

    opened by giorgio79 2
  • Version problem

    Version problem

    Because flutter_fcm >=1.0.4 depends on firebase_messaging ^12.0.3 and pryaniconline depends on firebase_messaging ^14.1.3, flutter_fcm >=1.0.4 is forbidden. So, because pryaniconline depends on flutter_fcm ^1.0.5, version solving failed. pub get failed (1; So, because pryaniconline depends on flutter_fcm ^1.0.5, version solving failed.)

    opened by hopheylalaley84 1
  • Tree Shaking in Release

    Tree Shaking in Release

    Unable to receive push notifications when the application is killed. can be fixed using this solution https://github.com/firebase/flutterfire/issues/9446#issuecomment-1240554285

    opened by mosab-omari 0
Owner
Wael Alhalabi
Wael Alhalabi
Flutter notification using firebase fcm

fcm_flutter_notifications A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get yo

Nisha Jain 1 Jan 31, 2022
:star: Flutter-Firebase fully backend messaging app

Orgonet ChatApp ⭐ Flutter-Firebase fully backend messaging app I made a backend full messaging app using firebase **download the file named orgone tv2

Berke Can Pınar 5 Nov 18, 2022
An instant messaging app built using Flutter and Firebase

Flutter Chat A messaging app built using Flutter and Firebase with authentication and Firestore. This app is based off the Flash Chat app from LondonA

Tom Sitter 0 Oct 30, 2021
Flutter + Firebase Cloud Firestore로 구현하였습니다.

B.log 사전과제 블로그 앱 입니다. Flutter + Firebase Cloud Firestore로 구현하였습니다. 0. 주요 기능 및 설명 1. 글 쓰기 wysiwyg(위지윅) 방식의 에디터로 글 작성 가능 이미지 삽입, 링크, 각종 마크다운 지원 2. 글 삭제

doitduri 3 Sep 29, 2022
Modern UI for Messaging/Chatting App, with Signup/Login Pages and Awesome animation, built with flutter v2.5.2.

instantChat_app_ui Modern UI for Messaging/Chatting App, with Signup/Login Pages and Awesome animation, built with flutter v2.5.2. The package/plugin

Kamran Jalil 1 Oct 25, 2021
Messaging app; made with flutter

flutter_group_chat_app A messaging app made with flutter using Google Firebase. The gif below isn't of the best video quality; hopefully it's not too

null 1 Apr 6, 2021
Friendly-Chat - Simple text messaging app coded in Dart using the Flutter framework

Friendly Chat A mobile application coded in the Dart programming language using

Vladislav Kostic 3 May 15, 2022
FireMessage - A cross-platfrom messaging app, built in Flutter.

FireMessage - A cross-platfrom messaging app, built in Flutter.

Ved Kothavade 1 Jun 22, 2022
Messaging App Light and Dark Theme

Messaging App Light and Dark Theme

null 1 Sep 26, 2021
Flutter app to track stocks for multiple users, using Cloud Firestore on the backend.

stock_tracker Flutter app to track stocks for multiple users, using Cloud Firestore on the backend. Overview I wrote this Flutter application as a mea

John 2 Sep 16, 2022