Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

アプリ内通知とメッセージング

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.

In-app notification flow 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.

When using Click to Pay and the messaging service, call D1Task.login() first. Then call D1Task.updatePushToken(). Only then call MessagingService.registerMessageNotification().

Integration flow

Prerequisites :

  • SDK is properly initialised.

  • Issuer App called D1 SDK login API.

  • Issuer App updated the push token.

Register and unregister for message notifications.

Retrieve messages and mark them as read

Flow

Integration flow

Prerequisites :

  • SDK is properly initialised

  • Issuer App called D1 SDK login API

Retrieve a message list and mark messages as read.

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.

役に立ちましたか?