How to test in-app-purchases easily, without publishing or signing it first?

前端 未结 4 612
长情又很酷
长情又很酷 2021-01-01 19:08

Background

My app has some in-app billing (like this one), and I wish to test it out before publishing it.

I\'ve watched some google IO lectures and read s

相关标签:
4条回答
  • You will have to public the app but publish in beta mode so that you can test the in app purchases. Beta mode will enable to test the functionality with limited user set.

    0 讨论(0)
  • 2021-01-01 19:27

    you dont have to publish the app inorder to test it all you have to do is upload the apk to your developer console, just dont publish it. If your account is linked to your developer console you cannot use that account and have to create a test account to test the IAP's

    0 讨论(0)
  • 2021-01-01 19:43

    Yes, you can test your app without publish (and without publish in beta mode too). There are instruction http://developer.android.com/google/play/billing/billing_testing.html#billing-testing-test. Please remember that after 1 point it's maybe need to wait about hour or two.

    It seems that in the developer console, the in app items cannot be activated.

    it's ok, just check that you mark it as active. It look like not active before you publish the app, but you can test it.

    I can use my own google account, right?

    I strongly recommended have additional account only for test purchases.

    Also, suppose I do make a (fake) purchase, how do I reset it (all/specific purchases) in order to check it out again?

    You'll must to fill billing information for your test account. But when you make test purchase, there are no any real money transaction. Every in-app can be tested once again after the app consume it.

    0 讨论(0)
  • 2021-01-01 19:43

    I'm also working on how to test In-App-Billing for Android in best way since days.

    With real transactions to me it seems to be really too complicated and a lot too much effort. So i'm currently thinking of 'only' testing this stuff with static responses (http://developer.android.com/google/play/billing/billing_testing.html#billing-testing-static).

    In theory i guess once this works, it should also be fine in production as in the source code only the SKU id gets changed for live release..

    0 讨论(0)
提交回复
热议问题