File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments