测试应用内购买 [英] Testing in-app purchases
问题描述
我想在具有不同Apple ID(不是开发者Apple ID)的设备上的应用中测试应用内购买。我在Apple Developer中添加设备。但我还是做不到。我如何在没有开发者Apple ID的设备上测试购买?
在发布之前测试你的应用程序时,最好是确保并测试其中包含的购买(免费或付费订阅和个别问题)。这需要在iTunes Connect中设置一个测试用户,您将以其身份登录。
如何在
单击Sandbox Testers选项卡。
点击+图标创建新的测试人员并填写信息。
点击保存以保存测试仪。
一条消息将告诉您用户是否已成功创建。
如何测试 - 与测试用户一起购买应用程序
- 在您的iOS设备上,转到设置应用程序并点按iTunes& ;App Store位于左栏。
- 点击Apple ID标签,将出现一个对话框。
- 点击登录出按钮。
- 现在启动您的测试应用并尝试购买。
系统将提示您登录。使用您之前创建的测试用户的电子邮件和密码,您可以在不收取费用的情况下进行购买。
I want to test in-app purchases in my app on device with different Apple ID(not developer Apple ID). I add device in Apple Developer. But I still can’t do it. How I test purchases on device with not developer Apple ID?
While testing your app before release, it's a good idea to be sure and test the purchases included within it (Free or Paid Subscriptions and individual Issues). This requires setting up a test user in iTunes Connect which you will log in as.
How to Set-up a Test User in iTunes Connect
Log into iTunes Connect and click on "Users and Roles".
Click on the tab "Sandbox Testers".
Click on the "+" icon to create a new tester and fill out the information.
Click on "Save" to save your tester.
A message will tell you whether the user was successfully created.
How to Test In-App Purchases with a Test User
- On your iOS device, go to the "Settings App" and tap on "iTunes & App Store" in the left column.
- Tap on the "Apple ID" label and a dialog will appear.
- Click on the "Sign Out" button.
- Now launch your test app and attempt to make a purchase.
You will be prompted to sign in. Use the e-mail and password of the test user you created earlier and you will be allowed to make a purchase without incurring a charge.
这篇关于测试应用内购买的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!