pushwoosh_flutter 2.3.2 pushwoosh_flutter: ^2.3.2 copied to clipboard
This plugin allows you to receive push notifications. Powered by Pushwoosh (www.pushwoosh.com).
Installation #
- Install the library from pub:
dependencies:
pushwoosh_flutter: '^2.3.2'
-
Configure Firebase Android project in Firebase console.
-
Place a google-services.json file into android/app folder in your project directory.
Usage #
import 'package:pushwoosh_flutter/pushwoosh_flutter.dart';
...
Pushwoosh.initialize({"app_id": "YOUR_APP_ID", "sender_id": "FCM_SENDER_ID"});
Pushwoosh.getInstance.onPushReceived.listen((event) {
...
});
Pushwoosh.getInstance.onPushAccepted.listen((event) {
...
});
Pushwoosh.getInstance.registerForPushNotifications();