Mark push notifications as delivered
You can now track whether push notifications has been successfully delivered to all the intended devices by the Sendbird server. Using the
SendbirdChat.markPushNotificationAsDelivered(remoteNotificationPayload:) method implemented in
Notification Service Extension, you can mark a push notification as delivered to a device.
To ensure proper functionality, the
SendbirdChat.setAppGroup() method must be called both in the
AppDelegate.application(_ application:, didFinishLaunchingWithOptions:) method and
NotificationService.didReceive(_ request:, withContentHandler:) method.
In order to check the delivery rate of push notifications, the SDK retrieves the tracking ID for push notifications and is sent to the server to identify which push notification has been successfully delivered to the device.
AppDelegate.swift, set the created app group with the
setAppGroup: method. To ensure the delivery delivery of push notifications,
SendbirdChat.setAppGroup() must be called on your app's
Notification Service Extension as shown in the code below. You can see how to configure the
App Group in the delivery-receipt page.