Developer Console

Appstore SDK Troubleshooting

This page describes how to troubleshoot issues you might encounter in your app when working with In-App Purchasing (IAP) or DRM from the Appstore SDK. If you're having issues when making calls for IAP or DRM, check the device logs for the following errors.

DATA_AUTH_KEY_LOAD_FAILURE: CERT_NOT_FOUND

This exception can be seen in the device logs. It occurs when your app isn't configured with a public key. To configure your app with a public key:

  1. Log into the Developer Console with your developer account.
  2. Go to Apps & Services > My Apps. Then click your app.
  3. Go to the Upload Your App File screen.
  4. In the Additional information section, click View public key.
  5. In the Public Key dialog box that appears, click the AppstoreAuthenticationKey.pem link to download a PEM file. This file contains your public key.

    The Public Key window showing a public key string. A download icon followed by the link text 'AppstoreAuthenticationKey.pem' is shown.
    PEM file download link
  6. In the Assets folder of your project, create a new folder named as StreamingAssets.

  7. Copy the AppstoreAuthenticationKey.pem file you downloaded, and paste it in your Assets/StreamingAssets folder.

For additional details, see Configure Unity App with Public Key.

AUTH_TOKEN_VERIFICATION_FAILURE

This exception can be seen in the device logs and might occur in different testing scenarios. The following steps could help resolve your issue.

  1. If you see the issue when using the App Tester, make sure you're using the debug version of your app and you have enabled sandbox mode. To enable sandbox mode, connect your device through ADB and issue this command adb shell setprop debug.amazon.sandboxmode debug. For more details, see Using App Tester.

  2. If you see the issue when using the Live App Testing (LAT) service, make sure your app is properly configured with a PEM file that contains your public key. To configure your app with a public key:

    1. Log into the Developer Console with your developer account.
    2. Go to Apps & Services > My Apps. Then click your app.
    3. Go to the Upload Your App File screen.
    4. In the Additional information section, click View public key.
    5. In the Public Key dialog box that appears, click the AppstoreAuthenticationKey.pem link to download a PEM file. This file contains your public key.

      The Public Key window showing a public key string. A download icon followed by the link text 'AppstoreAuthenticationKey.pem' is shown.
      PEM file download link
    6. In the Assets folder of your project, create a new folder named as StreamingAssets.

    7. Copy the AppstoreAuthenticationKey.pem file you downloaded, and paste it in your Assets/StreamingAssets folder.

    For additional details, see Configure Unity App with Public Key.


Last updated: Oct 02, 2023