Hello TVONOS team,
Thanks for the update; we are glad you were able to resolve the IOException
. Regarding the AUTH_TOKEN_VERIFICATION_FAILURE
error:
The condition causing the AUTH_TOKEN_VERIFICATION_FAILURE occurs when Appstore SDK is not able to verify the Authentication token sent from Amazon servers. This generally happens when the Public key (PEM file) is not available in the App.
The authentication token sent from Amazon server will be signed by the private key of that App when this Token reaches Appstore SDK it will try to use the Public key (PEM file) and verify the signature. This process is done to ensure that Appstore SDK only accepts data from Amazon authenticated servers, which have access to the private key.
Could you please double check it, by following the steps mentioned in Integrate the Appstore SDK | Appstore SDK to configure the key, and hopefully that resolves that issue. Normally, copying the public key (AppstoreAuthenticationKey.pem) to the assets folder is sufficient (please double check you got everything in correct location, etc).
Please see this blog post (New Amazon Appstore SDK) for a smooth Appstore SDK integration.
then please ensure that you:
- have set up a Live App Testing version of your app through the developer console with the new DRM code using the Amazon SDK
- installed the Live App Testing version through the Amazon Appstore app on the device
- verified that the license result returned Success. Your app might fail because Amazon digitally signs the application when it is submitted
For testing purposes, your app has to be submitted to Appstore. If you are not going live with it yet, then it has to be at least in the beta environment (Live App Testing) of Appstore.
Finally, the most important step is to ensure that any obfuscator or code optimizer does not remove the required methods from your app. For that, please ensure you are following this guide: Obfuscate The App Code | In-App Purchasing
If the issue still happens again, even after following both (copying the PEM file and code obfuscation recommendation), please login to your Developer Portal account, and use Contact Us to send us the following details:
Your customer ID: see https://amazon.developer.forums.answerhub.com/articles/104379/where-do-i-find-my-customer-id-ecid-1.html
Your app name (or ASIN):
Time of the error with timezone:
Device logs:
Thank you!