Skip to content

This project demonstrates how to integrate the Amazon Appostore Billing Compatibilty SDK into a Kotlin Android app for Amazon Fire OS. πŸ’°πŸ›’πŸ“±

License

Notifications You must be signed in to change notification settings

AmazonAppDev/hello-world-appstore-billing-compatibility-sdk

Hello Pizza

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.

Prerequisite

  • 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)

βœ… Features

Key features include:

  • Buying a pizza πŸ• (consumable)
  • Buying a discount
  • Buying subscription

πŸ’» Building the app

  1. Clone the demo app repository: git clone https://github.com/AmazonAppDev/hello-world-appstore-billing-compatibility-sdk.git
  2. Open the project in Android Studio and wait for Gradle to sync. ⏳
  3. Log into the Amazon Developer console and create an app
  4. Generate a public key for your app and download the AppstoreAuthenticationKey.pem file. More info here
  5. Copy the PEM file to your app's src/main/assets folder.
  6. Add the IAPs in the Amazon Appstore console. ( Make sure the SKU are the same as in HelloPizzaRepository.kt )
  7. Connect a Fire tablet via USB. See instructions for πŸ”Œ Connecting to Fire Device through ADB
  8. Choose 'Run' > 'Run app' to launch the app on your device or emulator. ▢️

Get support

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:

Stay updated

Get the most up to date Amazon Appstore developer news, product releases, tutorials, and more:

Authors

About

This project demonstrates how to integrate the Amazon Appostore Billing Compatibilty SDK into a Kotlin Android app for Amazon Fire OS. πŸ’°πŸ›’πŸ“±

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages