Configure your app’s public key
The unique public key establishes a secure communication channel between the Amazon Appstore and your app. When you generate the public key from the Developer Console, Amazon generates a corresponding private key. These public and private keys form a key pair to sign license responses. Through this key pairing, you authorize the users who install your app. To configure your existing app with the public key:- Access the Developer Console Log into the Developer Console with your developer account.
- Open your app listing Go to Apps & Services > My Apps and click your app. If you don’t already have an app, see Submit Your App to the Amazon Appstore.
- Create a new version of your app. In the area following your app’s name, click Upcoming Version.
- Open the app upload page Go to the Upload Your App File screen.
- Click the View public key in the Additional information section.
-
Click the AppstoreAuthenticationKey.pem link in the Public Key dialog box, to download a PEM file. This file contains your public key.

PEM file download link
- Copy the AppstoreAuthenticationKey.pem file, and paste it into the assests/raw folder of your app’s root directory.
Add IAP permissions
In your app’s manifest.toml file, add the following IAP permissions.Remove config files from tmp folder
To use production mode, remove the files from the tmp folder if they still exist.- Navigate to your app’s /tmp folder. You should see a subfolder /scratch/your-app-id.
- Check for a file named amazon.config.json in this subfolder.
- Remove the amazon.config.json file if you have one.

