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
feat: Support for Web push destinations (Chrome and Firefox) BREAKING CHANGE: SendNotifications accepts json string for the CeIbmenpushto, CeIbmenfcmbody, CeIbmenapnsbody, CeIbmenapnsheaders fields.
constsendNotifications=SendNotifications.newInstance(initParameters) // same `initParameters` used in the SDK initialization step.
704
-
res =awaitsendNotifications.sendNotifications(params);
700
+
res =awaiteventNotificationsService.sendNotifications(params);
705
701
console.log(JSON.stringify(res.result, null, 2));
706
702
} catch (err) {
707
703
console.warn(err);
@@ -711,32 +707,35 @@ eventNotificationsService
711
707
<summary>Send Notifications Variables</summary>
712
708
<br>
713
709
714
-
-**FCM Target NotificationFcmDevices** - Set up the the push notifications tragets.
710
+
-**ceIbmenpushto** - Set up the the push notifications tragets.
715
711
-*user_ids* (Array of **String**) - Send notification to the specified userIds.
716
-
-*fcm_devices* (Array of **String**) - Send notification to the list of specified fcm devices.
717
-
-*apns_devices* (Array of **String**) - Send notification to the list of specified iOS devices.
718
-
-*tags* (Array of **String**) - Send notification to the devices that have subscribed to any of
719
-
these tags.
720
-
-*platforms* (Array of **String**) - Send notification to the devices of the specified platforms. Pass 'G' for google (Android) devices. Pass 'A' for iOS devices.
721
-
-**FCM messageFcmBody** - Set payload specific to Android platform [Refer this FCM official [link](https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support)]. We support `notification` and `data` keys in FCM.
722
-
-**iOS messageApnsBody** - Set payload specific to iOS platform [Refer this APNs official doc [link](https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html)].
723
-
-**APNs messageApnsHeaders** - Set headers required for the APNs message [Refer this APNs official [link](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns)(Table 1 Header fields for a POST request)].
-*CeType* (**String**) - Type for the notifications.
729
+
-*CeTime* (**String**) - Time of the notifications.
730
+
-*CeIbmenpushto* (**string**) - Targets for the FCM notifications.
731
+
-*CeIbmenfcmbody* (**string**) - Set payload string specific to Android platform [Refer this FCM official [link](https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support)].
732
+
-*CeIbmenapnsbody* (**string**) - Set payload string specific to iOS platform [Refer this APNs official doc [link](https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html)].
733
+
-*CeIbmenapnsheaders* (**string**) - Set headers required for the APNs message [Refer this APNs official [link](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns)(Table 1 Header fields for a POST request)]
734
+
-*CeIbmenchromebody* (**string**) - Message body for the Chrome notifications. Refer [this official documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification) for more.
735
+
-*CeIbmenfirefoxbody* (**string**) - Message body for the Firefox notifications. Refer [this official documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification) for more.
736
+
-*CeIbmenchromeheaders* (**string**) - Headers for the Chrome notifications. Refer [this official documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification) for more.
737
+
-*CeIbmenfirefoxheaders* (**string**) - Headers for the Firefox notifications. Refer [this official documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification) for more.
738
+
-*CeSpecversion* (**String**) - Spec version of the Event Notifications. Default value is `1.0`.
0 commit comments