In-App Billing in Android. The exact way?

前端 未结 3 878
北恋
北恋 2021-01-31 21:54

I\'ve been working on implementing an in-app billing in Android for the app I\'m building. The base app would be free and the in-app apps would come at a price.

I have

相关标签:
3条回答
  • 2021-01-31 22:00

    I am testing a similar app (free with in-app billing), and I have to publish the items, although the app is still unpublished.

    0 讨论(0)
  • 2021-01-31 22:02
    1. I changed the public key to one in my dev console (public key)
    2. Also changed the code as per above suggestion

    On doing both above in-app billing worked.

    0 讨论(0)
  • 2021-01-31 22:27

    Here's the checklist:

    1. Sign the .apk in release mode.
    2. Upload the .apk as an "unpublished draft" to Google Play.
    3. Upload a products list for your draft app.
    4. Make sure to publish your items, but NOT your app.
    5. Install the release mode .apk to the device
    6. Run app using a test account
    7. Purchase items in-app
    0 讨论(0)
提交回复
热议问题