アプリ内通知とメッセージング
Use the D1 SDK to register the issuer application for in-app notifications. You can also retrieve a message list and mark messages as read.
Register the issuer application for notifications
D1 requires the issuer application to explicitly register with the messaging service to receive in-app notifications.
You perform this registration using the D1 SDK.
Flow
D1 delivers in-app notifications using push notifications.
Register and unregister
After calling D1Task.updatePushToken, register for message notifications by calling MessagingService.registerMessageNotification.
To stop receiving message notifications, call MessagingService.unregisterMessageNotification.
Integration flow
Prerequisites :
SDK is properly initialised.
Issuer App called D1 SDK login API.
Issuer App updated the push token.
Retrieve messages and mark them as read
Flow
Integration flow
Prerequisites :
SDK is properly initialised
Issuer App called D1 SDK login API
You can handle messages from push notifications. You can also retrieve a message list by calling MessagingService.getMessageList.
After the end user views the messages, mark them as read by calling MessagingService.markMessageListAsRead.
最終更新
役に立ちましたか?