push_notification_firebase 1.2.8 push_notification_firebase: ^1.2.8 copied to clipboard
push_notification is package in which foreground and background notification receive via firebase
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add push_notification_firebase
With Flutter:
$ flutter pub add push_notification_firebase
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
push_notification_firebase: ^1.2.8
Alternatively, 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:push_notification_firebase/helpers/notification_services.dart';
import 'package:push_notification_firebase/home_screen.dart';
import 'package:push_notification_firebase/main.dart';
import 'package:push_notification_firebase/message_screen.dart';
import 'package:push_notification_firebase/utils/download_file.dart';