fcm_push 1.1.9

  • README.md
  • Installing
  • Versions
  • 63


A Dart interface to Firebase Cloud Messaging (FCM) for Android and iOS

You can use fcm-push either as commandline tool or you can use it as a library.



Activate fcm-push:

pub globale activate fcm_push

Create fcm-push.yaml:

fcm.server.key: <your server key>
token: <eithe your phone-ID or a registered subject>

Send your message: fcm-push 'Hello Android' 'Dart rocks!'

Usage: fcm-push <options> title [body]
    -h, --help           Shows this message
    -s, --settings       Prints settings
    -t, --token          subject or token
    -f, --config_file    Change config file
    -v, --loglevel       Sets the appropriate loglevel
                         [info, debug, warning]


    Send message:
        fcm-push 'Hello Android' 'Dart rocks!'

As library

import 'package:fcm_push/fcm_push.dart';

final String serverKey = "";
final String token = "";

Future<int> main() async {
    final FCM fcm = new FCM(serverKey);
    final Message fcmMessage = new Message()
        ..to = token
        ..title = _config.title
        ..body = _config.body
    final String messageID = await fcm.send(fcmMessage);


Copyright 2017 Michael Mitterer (office@mikemitterer.at),
IT-Consulting and Development Limited, Austrian Branch

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
either express or implied. See the License for the specific language
governing permissions and limitations under the License.

If this plugin is helpful for you - please (Circle) me,
Follow me on Twitter or star this repo here on GitHub.

Change Log for fcm_push

A Dart interface to Firebase Cloud Messaging (FCM) for Android and iOS

v1.0.1 - 2017-03-03


This CHANGELOG.md was generated with Changelog for Dart

1. Depend on it

Add this to your package's pubspec.yaml file:

  fcm_push: "^1.1.9"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:fcm_push/fcm_push.dart';
Version Uploaded Documentation Archive
1.1.9 Dec 7, 2017 Go to the documentation of fcm_push 1.1.9 Download fcm_push 1.1.9 archive
1.1.7 Dec 7, 2017 Go to the documentation of fcm_push 1.1.7 Download fcm_push 1.1.7 archive
1.0.1 Mar 3, 2017 Go to the documentation of fcm_push 1.0.1 Download fcm_push 1.0.1 archive
1.0.0 Mar 3, 2017 Go to the documentation of fcm_push 1.0.0 Download fcm_push 1.0.0 archive


This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1


Describes how popular the package is relative to other packages. [more]
27 / 100
Code health derived from static analysis. [more]
98 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:fcm_push/fcm_push.dart.


  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use fcm_push.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
ansicolor ^0.0.9 0.0.9
args ^0.13.0 0.13.7 1.3.0
console_log_handler >=0.5.0 <1.0.0 0.5.7
firebase ^4.0.0 4.3.1
http >=0.11.3 <1.0.0 0.11.3+16
http_utils ^1.4.0 1.5.4
logging >=0.11.3 <1.0.0 0.11.3+1
path >=1.5.1 <2.0.0 1.5.1
tuple ^1.0.0 1.0.1
validate ^1.5.0 1.6.0
yaml ^2.1.0 2.1.13
Transitive dependencies
async 2.0.3
browser 0.10.0+2
charcode 1.1.1
collection 1.14.5
func 1.0.0
http_parser 3.1.1
intl 0.15.2
js 0.6.1
logging_handlers 0.8.0
quiver_hashcode 1.0.0
source_span 1.4.0
string_scanner 1.0.2
supports_color 0.1.1
typed_data 1.1.5
Dev dependencies
grinder any
test any