Archived
Implement streaming data into Flutter
This commit is contained in:
1 parent
da851a985b
commit
fb9dab3d1e
11 files changed
+374
-32
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user