fcm_push_node_interop 1.0.2
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, ); } 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';
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.dartwith 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.