ios订阅

Testing a subscription can be as challenging as developing it. In this article, we will go over the complete process of subscription testing.

测试订阅与开发订阅一样具有挑战性。 在本文中,我们将介绍订阅测试的完整过程。

Fist of all, to do any type of subscription testing, you need to create a sandbox tester account:

首先,要执行任何类型的订阅测试,您需要创建一个沙箱测试器帐户:

  1. Login to your iTunes Connect Account-> Users and Access -> Sandbox ->Testers to create new testers.

    登录到您的iTunes Connect帐户->用户和访问权限->沙箱->测试人员,以创建新的测试人员。

  2. In your device, go to Settings-> iTunes & App Store -> Log out the current account and DO NOT log in sandbox tester account here在您的设备中,转到“设置”->“ iTunes和App Store”->“退出当前帐户”,并且不要在此处登录沙盒测试器帐户

Note: Don’t use your test user account to sign in to the production environment. If you do so, the sandbox account becomes invalid and it can no longer be used.

注意 :请勿使用您的测试用户帐户登录生产环境。 如果这样做,沙箱帐户将变得无效,无法再使用。

订阅测试的类型 (Types of Subscription Testing)

1.沙箱测试 (1. Sandbox Testing)

Sandbox testing can be categorized into two types, one is developer sandbox and the other is production sandbox. If you are running your app from Xcode, then the subscription testing runs on the developer sandbox. Whereas if you have distributed your app through testflight, then subscription testing runs on the production sandbox.

沙箱测试可以分为两种类型,一种是开发人员沙箱 ,另一种是生产沙箱 如果您从Xcode运行应用程序,则订阅测试将在开发人员沙箱上运行。 而如果您已通过testflight分发了应用程序,则订阅测试将在生产沙箱上运行。

Log in to your Sandbox account under iTunes & App Store as shown in below image:

如下图所示,登录iTunes和App Store下的您的Sandbox帐户:

After logging into the Sandbox account, you are all set to test your subscriptions.

登录到沙盒帐户后,就可以测试订阅了。

Subscription Duration within the Sandbox testing:

沙盒测试中的订阅持续时间:

Duration of subscription has been reduced to facilitate testing allowing developers to test multiple purchases, renewals, and expirations.

减少了订阅期限,以方便测试,从而使开发人员可以测试多个购买,续订和到期。

Auto-renewable subscriptions automatically renew for up to 6 times and expire after that.

自动续订的订阅最多可以自动续签6次,并在此之后过期。

测试步骤: (Testing steps:)

Testing Purchase, auto-renewal, and expiration:

测试购买,自动续订和到期

Let’s suppose your subscription is a 1-year auto-renewable subscription:

假设您的订阅是1年的自动续订订阅:

  1. Subscribe to your in-app subscription.订阅您的应用内订阅。
  2. Close the app and open it after 1 hour to make sure your app is still in an active subscription state.关闭应用程序,并在1小时后打开它,以确保您的应用程序仍处于活动订阅状态。
  3. Close the app and open it again after around 6 hours, your app should be reset to unsubscribed state. This happened because the sandbox environment automatically renews subscription up to 6 times.关闭应用程序,然后在大约6个小时后再次打开它,您的应用程序应重置为取消订阅状态。 发生这种情况是因为沙箱环境最多可以自动续订6次。

Test restore purchase for an active subscription:

测试活动订阅的还原购买:

One major drawback in the sandbox environment is that there’s no receipt file on the device until a subscription is bought whereas, in the production environment, a receipt file is formed as soon as the app is installed on the device.

沙盒环境中的一个主要缺点是,在购买订阅之前,设备上没有收据文件,而在生产环境中,将应用程序安装在设备上后便会形成收据文件。

  1. Subscribe to your auto-renewable subscription.订阅您的自动更新订阅。
  2. Delete the app on the device.删除设备上的应用。
  3. Reinstall the app and press the Restore purchase button.

    重新安装该应用,然后按恢复购买 按钮。

  4. If all these steps are done under the subscription test duration, then active subscription should be restored, otherwise, the user should be shown a message about no active subscription found.如果所有这些步骤都在订阅测试持续时间内完成,则应恢复活动订阅,否则,应向用户显示一条有关未找到活动订阅的消息。

Test restore purchase on multiple devices:

在多个设备上测试还原购买:

  1. Log into devices A and B with the same sandbox account.使用相同的沙箱帐户登录设备A和B。
  2. Subscribe to your subscription on device A.在设备A上订阅您的订阅。
  3. Install the app on device B.在设备B上安装该应用。
  4. Launch the app on device B and press the Restore Purchase button.

    在设备B上启动该应用,然后按“ 恢复购买”按钮。

TestFlight测试 (TestFlight Testing)

An application distributed by TestFlight will automatically use the production sandbox environment. All testing steps will stay the same as the development sandbox environment.

TestFlight分发的应用程序将自动使用生产沙箱环境。 所有测试步骤将与开发沙箱环境相同。

Production Testing

生产测试

For an app that has yet to be released on the App Store, getting an early version of the app approved is a great way to test subscriptions.

对于尚未在App Store上发布的应用,批准该应用的早期版本是测试订阅的好方法。

启动前的生产测试 (Pre-launch Production Testing)

  1. For this, you need to submit the app’s beta version to Apple’s review. Don’t forget to set the version release to Manual release.

    为此,您需要将应用程序的Beta版本提交给Apple审查。 不要忘记将版本发布设置为手动发布。

  2. Generate promo codes for the app from iTunesConnect.从iTunesConnect生成应用程序的促销代码。
  3. Using promo code, download the app from the App Store.使用促销代码,从App Store下载该应用程序。
  4. Subscribe to your subscription. As the app is approved by Apple (though not released), it will still perform the same way as a live app.订阅您的订阅。 由于该应用程序已获得Apple批准(尽管尚未发布),因此其运行方式仍与实时应用程序相同。

沙盒可靠性 (Sandbox Reliability)

The developer sandbox is famously unreliable. For some reason, Apple never fixed it or it may not know the inconsistency. Either way, don’t get stressed if it doesn’t work all the time.

开发人员沙箱众所周知是不可靠的。 由于某种原因,Apple从未修复它,或者它可能不知道不一致的地方。 无论哪种方式,如果一直无法正常工作,请不要感到压力。

重要要点 (Important takeaways)

  • Subscriptions are automatically renewed up to 6 times and expire after that. This behavior can’t be changed by the user.订阅最多可以自动续订6次,然后过期。 用户无法更改此行为。
  • There is no purchase receipt available in the sandbox environment until a purchase is made.在完成购买之前,沙盒环境中没有可用的购买收据。
  • Testers will not be charged for the purchases done in either Development or Production Sandbox environment在“开发”或“生产”沙盒环境中完成的购买均不向测试人员收费

翻译自: https://medium.com/dev-genius/step-by-step-guide-for-ios-subscription-testing-50851cea8953

ios订阅


http://www.taodudu.cc/news/show-3352924.html

相关文章:

  • ios自动订阅服务器,任何(早期)iOS自动续订订阅体验
  • iOS取消应用订阅
  • 3.2.1 一篇文章完全掌握 RecycleView 的六大用法
  • UGUI基础
  • android屏幕大小字体大小,文字大小和不同的Android屏幕尺寸
  • 【Web技术】1021- 一名合格前端工程师必备素质:代码整洁之道
  • 彻底搞懂 Nginx 五大应用场景!出去吹牛逼再也不担心了
  • Flink v1.11 - 官网 - 部署与运维
  • 游戏ui设计3
  • Ui 设计4
  • WEB应用程序UI模版代码编写及使用规范
  • 设计与算法 | Google Photos Web UI
  • 【技术认证题库】SCCA理论AD考试【初级】
  • UI规范说明文件
  • 一篇UI规范文件
  • ui字段和虚字段_绝无仅有!2019年最全的UI设计之输入字段剖析
  • 「工具」不限速的百度网盘工具
  • 阿里云不限速网盘,开始内测
  • mac不限速下载百度网盘
  • 25TB不限速网盘免费注册,走过路过不要错过
  • 阿里云网盘福利码分享-100M/S不限速网盘
  • Mac/Windows下实现百度云网盘的不限速下载
  • 使用 Zpan 搭建低成本个人私有网盘,还不限速
  • 终于找到了不限速的网盘!
  • 便宜并且适合各行业支付收款的固码代开介绍
  • H5实现聚合支付及踩坑
  • 商业银行纷纷发力聚合支付:进行费率补贴 即时生成收款码
  • 年报解读 | 中国农业银行开启零售转型,2018年信用卡发卡量突破一亿张
  • 金融科技加持下,看中国农业银行转型的破局之路
  • 支付宝-API接口解析-转账到银行

ios订阅_iOS订阅测试分步指南相关推荐

  1. iOS订阅测试终极指南The Ultimate Guide to iOS Subscription Testing

    订阅测试如何测试呢?平时遇到的都是消耗型商品,没有持续性,买完就完了,而订阅型是一个持续时间段,这个时间内有很多故事发生,测试起来相对也是复杂的多.找到一篇文章,参考下: 找到并修复错误,这样你就不会 ...

  2. iOS 自动续期订阅,订阅升级降级、订阅时间、退收费处理

    自动续期订阅群组设置概述 设置自动续期订阅与设置其他 App 内购买项目类型不同.每个自动续期订阅产品需创建为订阅群组的一部分并为其分配等级.您对订阅群组的设置将决 定顾客如何订阅您的内容或服务.如何 ...

  3. 微信sdk swift版_使用Swift 4的iOS版Google Maps SDK终极指南

    微信sdk swift版 by Dejan Atanasov 通过Dejan Atanasov 使用Swift 4的iOS版Google Maps SDK终极指南 (Your ultimate gui ...

  4. 小程序订阅消息 订阅消息开发

    微信小程序交流QQ群:  173683895    173683866     526474645 . 群内打广告或者脏话一律飞机票 订阅消息 当用户勾选了订阅面板中的"总是保持以上选择,不 ...

  5. 《黑客秘笈——渗透测试实用指南(第2版)》目录—导读

    版权 黑客秘笈--渗透测试实用指南(第2版) • 著 [美] Peter Kim 译 孙 勇 责任编辑 傅道坤 • 人民邮电出版社出版发行 北京市丰台区成寿寺路11号 邮编 100164 电子邮件 3 ...

  6. 终极WordPress安全指南-分步指南(2020)

    WordPress security is a topic of huge importance for every website owner. Google blacklists around 1 ...

  7. VMware Horizon7安装-分步指南

    VMware Horizon7安装-分步指南 https://blog.csdn.net/VirtualMan_/article/details/105028744 简介 在安装之前,简要介绍一下Ho ...

  8. 如何创建一个网站?初学者的分步指南

    在2020年,任何人都可以在不了解Web开发,设计或编码的情况下建立和设计网站. 无论您是想为自己还是为企业创建网站,都可以使用正确的工具和资源轻松地做到这一点. 本分步指南将帮助您从头开始创建网站, ...

  9. 【EventBus】事件通信框架 ( 订阅方法注册 | 注册 事件类型 - 订阅类 + 订阅方法 到指定集合 | 取消注册 数据准备 )

    文章目录 一.注册订阅方法 二.完整代码示例 一.注册订阅方法 订阅方法注册的过程就是将 订阅方法参数类型 和 订阅类 + 订阅方法 封装类 , 保存到 Map<Class<?>, ...

最新文章

  1. New LINQ CTP!
  2. 用java怎么开发图片标注工具_java 图片处理工具 测试
  3. 67 Airflow配置MySQL数据库和LocalExecutor
  4. 【控制】《自动控制原理》胡寿松老师-第1章-自动控制的一般概念
  5. uniapp动态显示数组_uni-app学习:4、数据绑定(变量、数组、显示控制)
  6. JIRA7.10迁移
  7. php验证ip地址的函数,php使用preg_match()函数验证ip地址的方法
  8. js中立即执行函数会预编译吗_作为前端你了解JavaScript运行机制吗?
  9. [数据库字典]简单的3个SQL视图搞定所有SqlServer数据库字典
  10. CoralCache:一个提高微服务可用性的中间件
  11. 利用 Flask 动态展示 Pyecharts 图表数据的几种方法
  12. python中3个while循环_Python3 里怎么让一个包含 while 循环的异步函数不断运行,而不阻塞正常的代码流程...
  13. worklist 设备对接,pe 为例
  14. python程序设计基础教程答案山东联盟答案_知到Python程序设计基础(山东联盟)测试答案-查询...
  15. Apache POI 操作Excel表格使用详解 最全
  16. MapReduce 的基本原理
  17. DLL Hell (DLL噩梦)
  18. 自动驾驶发展_自动驾驶网络及其发展
  19. 设计模式-生产者与消费者模式
  20. 学习单片机,除了需要电脑以外,还需要以下的一些器材

热门文章

  1. 星载SAR及InSAR卫星系统参数
  2. 免费!百度权重数据接口 根据网址查询百度权重
  3. 为什么六西格玛值得我们学习?-优思学院
  4. windows中docker打包使用
  5. UG建模教程,ug曲面教程,UGNX基础建模练习,拉伸命令-09
  6. Java 实现二叉树排序和查找
  7. 设计模式学习笔记(二)工厂模式、模板模式和策略模式的混合使用
  8. android 设置xml边框,XML定义实现圆角和边框
  9. Java复习打卡day47
  10. xposed下载出错 http://dl.xposed.info/repo