Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.

Message handling

This section is only applicable for NFC Wallet.

Process a push notification

When receiving a push notification, the issuer application shall provide the notification to D1 SDK using D1Task.processNotification().

Push notification processing flow

Message types and payloads

The SDK processes the push message, returns data contains PushResponseKey.MESSAGE_TYPE, PushResponseKey.CARD_ID or PushResponseKey.LAST_CALL_TIMESTAMP. The following table shows the possible message type and corresponding payloads:

Message Type
Card ID
Last Call Timestamp
Comments

PushResponseKey.TYPE_CARD_STATE

Yes

No

PushResponseKey.TYPE_REPLENISHMENT

Yes

No

PushResponseKey.TYPE_TRANSACTION_NOTIFICATION

Yes

Yes

PushResponseKey.TYPE_AUTHN

No

No

PushResponseKey.TYPE_CARD_RENEWAL

No

No

Message received after a successful card renewal. To reflect the new card ID, a resynchronisation of the card ID is required. For more details, refer to Card Renewal.

PushResponseKey.TYPE_MESSAGING (iOS) PushResponseKey.TYPE_MESSAGE_NOTIFICATION (Android)

Yes

No

PushResponseKey.TYPE_UNKNOWN

No

No

Message for the application.

Examples

For Android, apps targeting API level 33 must handle runtime notification permission. For details, see Notification runtime permission.

Notification filtering

Internally, D1 SDK processes the notification with the following key value pairs. The application may filter based on these values and only pass such notifications to the SDK.

Key
Value

sender

CPS

sender

MG

sender

TNS

topic

D1_NOTIFICATION

Last updated

Was this helpful?