In-App Billing in Android. The exact way?

走远了吗. 提交于 2019-12-02 18:47:29

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

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

Satish
  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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!