File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,22 @@ class _MyAppState extends State<MyApp> {
83
83
print ("SMS SUBSCRIPTION STATE CHANGED ${changes .jsonRepresentation ()}" );
84
84
});
85
85
86
+ OneSignal .shared.setOnWillDisplayInAppMessageHandler ((message) {
87
+ print ("ON WILL DISPLAY IN APP MESSAGE ${message .messageId }" );
88
+ });
89
+
90
+ OneSignal .shared.setOnDidDisplayInAppMessageHandler ((message) {
91
+ print ("ON DID DISPLAY IN APP MESSAGE ${message .messageId }" );
92
+ });
93
+
94
+ OneSignal .shared.setOnWillDismissInAppMessageHandler ((message) {
95
+ print ("ON WILL DISMISS IN APP MESSAGE ${message .messageId }" );
96
+ });
97
+
98
+ OneSignal .shared.setOnDidDismissInAppMessageHandler ((message) {
99
+ print ("ON DID DISMISS IN APP MESSAGE ${message .messageId }" );
100
+ });
101
+
86
102
// NOTE: Replace with your own app ID from https://www.onesignal.com
87
103
await OneSignal .shared
88
104
.setAppId ("380dc082-5231-4cc2-ab51-a03da5a0e4c2" );
You can’t perform that action at this time.
0 commit comments