fcm_push_node_interop 1.0.3

  • Readme
  • Changelog
  • Installing
  • 44

fcm_push_node_interop #

A Dart interface to Firebase Cloud Messaging (FCM) for NodeJS To be used as a library in your Dart projects, compiled to NodeJS.

Prerequisite #

For the serverKey go to your Firebase console / Settings:


Usage #

import 'package:fcm_push_node_interop/fcm_push_node_interop.dart';

final String _serverKey = "";
final String _token = "";

Future<int> main() async {
  final fcm = FCM(_serverKey);
  final messageID = await fcm.send(
    data: {'key': 'value'},
    logging: true,
    text: 'Hello, world!',
    title: 'Message title',
    to: _token,

License #

Copyright (c) 2019, Alexandr Priezzhev a@priezz.net

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 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Change Log for fcm_push_node_interop #

A Dart interface to Firebase Cloud Messaging (FCM) for NodeJS

v1.0.3 - 2019-09-29 #

Added content_available: true into notification field of the message.

v1.0.2 - 2019-09-29 #

Duplicate body and title in data to let them be accessible from modes other that foreground.

v1.0.1 - 2019-09-29 #

Added the click_action to data to let Flutter process onLaunch and inResume events.

v1.0.0 - 2019-08-16 #

Initial release

Use this package as a library

1. Depend on it

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

  fcm_push_node_interop: ^1.0.3

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub 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_node_interop/fcm_push_node_interop.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 26, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and fcm_push_node_interop.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0-dev <3.0.0
node_http ^1.0.0 1.0.0
Transitive dependencies
async 2.4.1
charcode 1.1.3
collection 1.14.12
http 0.12.0+4
http_parser 3.1.4
js 0.6.1+1
meta 1.1.8
node_interop 1.0.3
node_io 1.0.1+2
path 1.6.4
pedantic 1.9.0
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
build_node_compilers ^0.2.4
build_runner any
build_test any
test any