This project is a simple demonstration of the Amazon Appstore Billing Compatibility SDK on a Amazon Fire Tablet. This SDK supports consumable, entitlement, and subscription IAPs in the same way of Google Play Billing Library versions 4.0 and 5.0.
- An Android app that uses Google Play Billing Library version 4.0 or 5.0
- Amazon Developer Console account
- Appstore Billing Compatibility SDK (download here)
Key features include:
- Buying a pizza π (consumable)
- Buying a discount
- Buying subscription
- Clone the demo app repository:
git clone https://github.com/AmazonAppDev/hello-world-appstore-billing-compatibility-sdk.git
- Open the project in Android Studio and wait for Gradle to sync. β³
- Log into the Amazon Developer console and create an app
- Generate a public key for your app and download the AppstoreAuthenticationKey.pem file. More info here
- Copy the PEM file to your app's
src/main/assets folder
. - Add the IAPs in the Amazon Appstore console. ( Make sure the SKU are the same as in
HelloPizzaRepository.kt
) - Connect a Fire tablet via USB. See instructions for π Connecting to Fire Device through ADB
- Choose 'Run' > 'Run app' to launch the app on your device or emulator.
βΆοΈ
If you found a bug or want to suggest a new [feature/use case/sample], please file an issue.
If you have questions, comments, or need help with code, we're here to help:
- on X at @AmazonAppDev
- on Stack Overflow at the amazon-appstore tag
Get the most up to date Amazon Appstore developer news, product releases, tutorials, and more:
-
π£ Follow @AmazonAppDev and our team on Twitter
-
πΊ Subscribe to our Youtube channel
-
π§ Sign up for the Developer Newsletter