How to test In App Purchases through Apple TestFlight?

后端 未结 4 1372
攒了一身酷
攒了一身酷 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: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.

提交回复
热议问题