Implement streaming data into Flutter

This commit is contained in:
PapaTutuWawa committed 2023-07-28 13:54:57 +02:00
1 parent da851a985b
commit fb9dab3d1e
11 files changed
+374 -32

No files matched your search

+4
View File
@@ -42,6 +42,10 @@ class MyAppState extends State<MyApp> {
await Permission.notification.request();
await MoxplatformPlugin.notifications.createNotificationChannel("Test notification channel", channelId, false);
MoxplatformPlugin.notifications.getEventStream().listen((event) {
print('NotificationEvent(type: ${event.type}, jid: ${event.jid}, payload: ${event.payload})');
});
}
@override