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

Configuración de notificaciones push

The D1 solution supports the push notification using the following services:

  • NFC payment

    • Firebase Cloud Messaging (FCM) (for Android devices using Google services)

    • Huawei Mobile Services (HMS) core (for Huawei devices with no Google services).

  • 3DS

    • Firebase Cloud Messaging (FCM) (for Android devices using Google services)

    • Apple Push Notification Services (APNs) (for iOS devices).

  • Card issued by D1

    • Firebase Cloud Messaging (FCM) (for Android devices using Google services)

    • Apple Push Notification Services (APNs) (for iOS devices).

The D1 solution supports the push notification using Firebase Cloud Messaging (for Android devices using Google services) or HMS core (for Huawei devices with no Google services). The issuer application receives the notifications and shall pass them to the D1 SDK.

When using this feature, the issuer application will need to pass the received push notification payload to D1 SDK.

The push notifications are data messages to be handled silently by the issuer application.

Android: Fetch FCM API keys

Refer to the Firebase Setup. The FCM API key must be shared with Thales delivery team. Contact the Thales delivery team for further actions on the implementation of push notifications.

Android: Fetch HMS Push Kit configuration (NFC Wallet only)

Refer to the HMS Push Kit and HMS Authentication. The HMS Push Kit configuration must be shared with Thales delivery team. Contact the Thales delivery team for further actions on the implementation of push notifications.

The solution supports two types of authentications:

  • OAuth 2.0 authentication

  • API key authentication

Android: Set runtime notification permission

For apps targeting API level 33, the application must handle the runtime permission uses-permission android:name="android.permission.POST_NOTIFICATIONS" in order to post notification in the Notification panel.

For more details, refer to Notification runtime permission.

iOS: Set up APNs certificates

Refer to the Certificate-based connection to APNS. The generated certificates must be shared with the Thales delivery team. Certificates should be generated for both sandbox and production environments. Contact the Thales delivery team for further actions on the implementation of push notifications.

For cards issued by D1, the notification contains a messageID and requires further processing by D1 SDK, as described in message handling. To enable such additional processing, the permission for background notification is required. Refer to the Pushing background updates to your App for more details.

Enable background notifications for iOS

Update push token

Before being able to receive notifications from D1 backend, the issuer application must register the push notification token obtained from FCM or HMS.

Register the push token with the D1 backend
  • Support push token renewal in the issuer application. Notify the D1 SDK using D1Task.updatePushToken().

  • If the push token comes from Huawei Mobile Services (HMS), prefix the value with HMS: during configuration or refresh. This lets the D1 backend select the correct push service.

  • Call D1Task.login() before D1Task.updatePushToken() when you use:

    • Click to Pay

    • Messaging Service

  • For NFC Wallet and 3DS, the D1 SDK does not require initialization before calling D1Task.updatePushToken(). It only requires an Android Context.

  • If you combine Click to Pay or Messaging Service with NFC Wallet or 3DS, call D1Task.login() before D1Task.updatePushToken().

Última actualización

¿Te fue útil?