How to test In App Purchases through Apple TestFlight?

后端 未结 4 1373
攒了一身酷
攒了一身酷 2020-12-13 13:49

I uploaded my first app to iTunes Connect (iOS 8, iPhone) and it\'s now available through Apple TestFlight for internal and external testers. I created a Non-Consumable<

相关标签:
4条回答
  • 2020-12-13 14:31

    English

    Testers - TestFlight - Apple Developer

    Each build is available to test for up to 90 days, starting from the day the developer uploads their build. You can see how many days you have left for testing in the app’s details page in TestFlight. TestFlight will notify you each time a new build is available and will include instructions on what you need to test.

    All in-app purchases are free during the testing period.

    中文

    测试员 - TestFlight - Apple Developer

    从开发者上传的那一天起,每个构建版本可被测试长达 90 天。您可以在 TestFlight 的 app 详细信息页面上查看可供测试的剩余天数。

    在测试期间,所有 App 内购买项目都是免费的.

    0 讨论(0)
  • 2020-12-13 14:36

    Testing IAP is going to require a test user that you create under iTunes connect. Plus code in you app to implement IAP. Then to test it you "purchase" the item from within the app, under the sandbox, using that user id.

    As far as I know TestFlight is no different than testing the IAP on your device by building directly to your device.

    I'm assuming that you didn't just add the IAP bundle id and expect it to do something.

    If you have not added code to support IAP, that answer is non-trivial within the scope of a SE answer. Google IAP tutorial. There are lots of good ones out there.

    0 讨论(0)
  • 2020-12-13 14:45

    TestFlight users don't require a sandbox account, but they will test against an automatically created sandbox account.

    Sandbox Accounts

    The moment a tester opens your application, a sandbox account is created for them. This means it's no longer necessary to create test accounts in iTunes Connect. Testing In-App Purchases was never easier.

    Source


    Note that your TestFlight user is a legitimate App Store user. That user will be purchasing, restoring, etc. from the IAP in the Sandbox as opposed to the real IAP.

    On iTunes Connect, the IAP can be "Approved" or "Ready to Submit" (or any other status, I think).

    0 讨论(0)
  • 2020-12-13 14:48

    you can test in-app purchase with test account.

    go to itunes connect -> Users and Roles --> Sandbox Testers

    then create an account for testing your in app purchase.

    when test in app purchase try to logout from app store which uses your real account. then it will ask for itunes account while in testing in app purchase then enter your test account credentials.

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