Search code examples
androidtestingin-app-purchasesubscription

Android in app subscription testing


I want to test the in app subscription mechanism on android devices(In app billing V3. api). How can I do this? I saw that testing with static responses is works only with the in app products. The beta/alpha testing supports the in app subscriptions?

Thank you.


Solution

  • You can test your app with in app purchase feature. you have to follow below steps for testing

    1. Upload you final signed apk file to Google play.
    2. Dont publish it
    3. Add in app products
    4. get in app products id and add to code
    5. get base 64 key and add to product
    6. sign apk and upload again
    7. your app should be in draft mode
    8. in you Google play account setting add your test account id
    9. use the device which should have the primary account id similar to the one you have added on Google play test account.
    10. Install signed apk you have uploaded to Google play to your device.
    11. run application and test your features