fcm_push 1.2.5

  • README.md
  • Installing
  • Versions
  • 75


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




  • Removed Grinder dependencies df254a5

v1.0.1 - 2017-03-03


This CHANGELOG.md was generated with Changelog for Dart

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate fcm_push

2. Use it

The package has the following executables:

$ fcm-push

Use this package as a library

1. Depend on it

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

  fcm_push: "^1.2.5"

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 flutter 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.2.5 Jun 4, 2018 Go to the documentation of fcm_push 1.2.5 Download fcm_push 1.2.5 archive
1.2.3 Jun 4, 2018 Go to the documentation of fcm_push 1.2.3 Download fcm_push 1.2.3 archive
1.2.1 Jun 4, 2018 Go to the documentation of fcm_push 1.2.1 Download fcm_push 1.2.1 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


We analyzed this package on Jun 12, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
52 / 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]
Learn more about scoring.


Detected platforms: Flutter, web, other

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


  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 10 hints.

    Run dartfmt to format lib/cmdline.dart.

    Run dartfmt to format lib/cmdline/Application.dart.

    Similar analysis of the following files failed:

    • lib/cmdline/Config.dart (hint)
    • lib/cmdline/Options.dart (hint)
    • lib/fcm_push.dart (hint)
    • lib/fcm_push/Message.dart (hint)
    • lib/fcm_push/exception.dart (hint)
    • lib/fcm_push/fcm.dart (hint)
  • 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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
ansicolor ^0.0.9 0.0.9 0.1.0
args ^1.4.0 1.4.3
console_log_handler >=0.5.0 <1.0.0 0.5.7 1.0.3
firebase ^4.0.0 4.5.0
http >=0.11.3 <1.0.0 0.11.3+16
http_utils ^1.4.0 1.6.1
logging >=0.11.3 <1.0.0 0.11.3+1
path >=1.5.1 <2.0.0 1.6.0
tuple ^1.0.0 1.0.1
validate ^1.5.0 1.6.0
yaml ^2.1.0 2.1.14
Transitive dependencies
async 2.0.7
browser 0.10.0+3
charcode 1.1.1
collection 1.14.10
http_parser 3.1.2
intl 0.15.6
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
build_runner ^0.8.0
build_test ^0.10.0
build_web_compilers ^0.4.0
test any