Gestión de mensajes
Process a push notification
When receiving a push notification, the issuer application shall provide the notification to D1 SDK using D1Task.processNotification().
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:
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
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.
sender
CPS
sender
MG
sender
TNS
topic
D1_NOTIFICATION
Última actualización
¿Te fue útil?