You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5d73bd8
Browse filesBrowse the repository at this point in the historyBrowse files
feat(in_app_messaging): expose the message lifecycle events
Adds `onMessageClicked`, `onMessageImpression`, `onMessageDismissed` and
`onMessageDisplayError` to `FirebaseInAppMessaging`, so apps can react to
what happens to a campaign message - most importantly read the action URL
of the button a user tapped, together with the campaign metadata.
The native listeners are attached the first time one of the streams is
read, so apps that never listen keep the current behavior and, on iOS,
keep ownership of the `InAppMessaging` display delegate.
Android reports no dismiss type, so `InAppMessagingDismissType.unknown`
is always used there.
Closes#12984
Copy file name to clipboardExpand all lines: packages/firebase_in_app_messaging/firebase_in_app_messaging/README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,20 @@ To get started with Firebase In-App Messaging for Flutter, please [see the docum
14
14
15
15
To use this plugin, please visit the [Firebase In-App Messaging Usage documentation](https://firebase.google.com/docs/in-app-messaging/get-started?platform=flutter)
16
16
17
+
### Message lifecycle events
18
+
19
+
Listen to the streams below to react to what happens to the messages of your
20
+
campaigns, for example to handle the URL of the button a user tapped yourself:
Copy file name to clipboardExpand all lines: packages/firebase_in_app_messaging/firebase_in_app_messaging/android/src/main/kotlin/io/flutter/plugins/firebase/inappmessaging/FirebaseInAppMessagingPlugin.kt
0 commit comments