firebase_cloud_messaging_flutter 2.1.2
firebase_cloud_messaging_flutter: ^2.1.2 copied to clipboard
Send Firebase Cloud Messages and manage topics directly from your Dart or Flutter application using the FCM HTTP v1 API. No external server required. Includes native Google Application Default Creden [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add firebase_cloud_messaging_flutterWith Flutter:
$ flutter pub add firebase_cloud_messaging_flutterThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
firebase_cloud_messaging_flutter: ^2.1.2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:firebase_cloud_messaging_flutter/firebase_cloud_messaging_flutter.dart';