Add support for Firebase Cloud Messaging to your Patapata app.
This package is a plugin for Patapata that adds support for Firebase Cloud Messaging to your Patapata app. It will automatically handle push notifications from Firebase and send them to Patapata's Notification system.
This plugin requires the patapata_firebase_core plugin to be installed and activated.
- Add the dependency to your
pubspec.yaml
file
flutter pub add patapata_firebase_messaging
- Import the package
import 'package:patapata_firebase_messaging/patapata_firebase_messaging.dart';
- Activate the plugin
void main() {
App(
environment: const Environment(),
plugins: [
FirebaseCorePlugin(),
FirebaseMessagingPlugin(),
],
)
.run();
}
Check out the CONTRIBUTING guide to get started.