push_notification_firebase 1.2.14 push_notification_firebase: ^1.2.14 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 Flutter:
$ flutter pub add push_notification_firebase
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
push_notification_firebase: ^1.2.14
Alternatively, your editor might support 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';