Skip to content

Commit 02feae0

Browse files
committed
update listener logs
1 parent 29b99f1 commit 02feae0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

example/lib/main.dart

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,13 @@ class _MyAppState extends State<MyApp> {
6666
});
6767

6868
OneSignal.Notifications.addClickListener((event) {
69-
print('NOTIFICATION CLICK LISTENER CALLED WITH EVENT: $event');
70-
this.setState(() {
71-
_debugLabelString =
72-
"Clicked notification: \n${event.notification.jsonRepresentation().replaceAll("\\n", "\n")}";
73-
});
69+
print(
70+
'NOTIFICATION CLICK LISTENER CALLED WITH EVENT: ${event.notification.title}');
7471
});
7572

7673
OneSignal.Notifications.addForegroundWillDisplayListener((event) {
77-
print("YO222222!");
78-
// print(
79-
// 'NOTIFICATION WILL DISPLAY LISTENER CALLED WITH: ${event.notification.jsonRepresentation()}');
74+
print(
75+
'NOTIFICATION WILL DISPLAY LISTENER CALLED WITH: ${event.notification.title}');
8076

8177
/// Display Notification, preventDefault to not display
8278
event.preventDefault();

0 commit comments

Comments
 (0)