测试应用内购买 [英] Testing in-app purchases

查看:215
本文介绍了测试应用内购买的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在具有不同Apple ID(不是开发者Apple ID)的设备上的应用中测试应用内购买。我在Apple Developer中添加设备。但我还是做不到。我如何在没有开发者Apple ID的设备上测试购买?

解决方案

在发布之前测试你的应用程序时,最好是确保并测试其中包含的购买(免费或付费订阅和个别问题)。这需要在iTunes Connect中设置一个测试用户,您将以其身份登录。



如何在


  • 单击Sandbox Testers选项卡。


  • 点击+图标创建新的测试人员并填写信息。


  • 点击保存以保存测试仪。


  • 一条消息将告诉您用户是否已成功创建。


  • 如何测试 - 与测试用户一起购买应用程序


    1. 在您的iOS设备上,转到设置应用程序并点按iTunes& ;App Store位于左栏。

    2. 点击Apple ID标签,将出现一个对话框。

    3. 点击登录出按钮。

    4. 现在启动您的测试应用并尝试购买。

    系统将提示您登录。使用您之前创建的测试用户的电子邮件和密码,您可以在不收取费用的情况下进行购买。


    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

    1. Log into iTunes Connect and click on "Users and Roles".

    2. Click on the tab "Sandbox Testers".

    3. Click on the "+" icon to create a new tester and fill out the information.

    4. Click on "Save" to save your tester.

    5. A message will tell you whether the user was successfully created.

    How to Test In-App Purchases with a Test User

    1. On your iOS device, go to the "Settings App" and tap on "iTunes & App Store" in the left column.
    2. Tap on the "Apple ID" label and a dialog will appear.
    3. Click on the "Sign Out" button.
    4. 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屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆