hibira_push 0.1.0
hibira_push: ^0.1.0 copied to clipboard
Hibira Push for Flutter: Beams-compatible push notifications on Android (FCM) and iOS (APNs), wrapping the hibira-push-android and hibira-push-ios SDKs.
hibira_push example #
The example app is in the repository root, together with the Channels client: hibira-io/flutter/example.
import 'package:hibira_push/hibira_push.dart';
Future<void> setUpPush() async {
final push = HibiraPush.instance;
await push.start('YOUR_INSTANCE_ID');
await push.requestPermission();
await push.addDeviceInterest('hello');
push.onMessage.listen((m) => print('${m.title}: ${m.body}'));
}