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 }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/MESSAGING.md
+45-9Lines changed: 45 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,11 @@ This results in a payload of:
193
193
194
194
### Interactive notifications (iOS only for now)
195
195
To register the app to receive interactive pushes you need to call `firebase.registerForInteractivePush(model)`.
196
-
And you may hook to the `model.onNotificationActionTakenCallback` callback to know what action the user took interacting with the notification:
196
+
And you may hook to the `model.onNotificationActionTakenCallback` callback to know what action the user took interacting with the notification.
197
+
198
+
<imgsrc="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive01.png"height="270px"alt="Interactive Notification, part 1"/> <imgsrc="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive02.png"height="270px"alt="Interactive Notification, part 2"/> <imgsrc="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive03.png"height="270px"alt="Interactive Notification, part 3"/> <imgsrc="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-plugin-firebase/master/docs/images/messaging/interactive04.png"height="270px"alt="Interactive Notification, part 4"/>
199
+
200
+
The example shown above was created with the code below.
@@ -233,10 +252,27 @@ model.onNotificationActionTakenCallback = (actionIdentifier: string, message: fi
233
252
firebase.registerForInteractivePush(model);
234
253
```
235
254
236
-
To send an interactive push, add the `"click_action"` property to the notification, with a value corresponding to the `category` defined in the model you've registered in the app:
255
+
To send an interactive push, add the `"click_action"` property to the notification, with a value corresponding to the `category` defined in the model you've registered in the app.
256
+
The payload to trigger the notification in the screenshots above is:
0 commit comments