fcm_push_node_interop 1.0.2

  • Readme
  • Changelog
  • Installing
  • 53

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:

Screenshot

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.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:


dependencies:
  fcm_push_node_interop: ^1.0.2

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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
11
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
53
Learn more about scoring.

We analyzed this package on Oct 11, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: web, other

Primary library: package:fcm_push_node_interop/fcm_push_node_interop.dart with components: js, io.

Maintenance suggestions

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.

Dependencies

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.0
charcode 1.1.2
collection 1.14.12
http 0.12.0+2
http_parser 3.1.3
js 0.6.1+1
meta 1.1.7
node_interop 1.0.3
node_io 1.0.1+2
path 1.6.4
pedantic 1.8.0+1
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
build_node_compilers ^0.2.3
build_runner any
build_test any
test any