简体   繁体   English

免费服务的免费试用期

[英]Free trial period of premium service

Although I searched a lot on this site and used Google as well, I cannot find a good solution for my problem. 尽管我在该网站上搜索了很多内容,并且也使用了Google,但我找不到解决该问题的好方法。 I'm creating an app that offers a paid web service as an option. 我正在创建一个提供付费Web服务作为选项的应用程序。 I would like give away a initial period of this service and link this to the purchase date of the app. 我想放弃这项服务的初期期限,并将其链接到该应用的购买日期。

The Daily app is doing something similar. Daily应用程序正在执行类似操作。 After downloading the app, you can read The Daily for two weeks for free. 下载该应用程序后,您可以免费阅读两周的《每日报》。 After that time, you have to subscribe. 在那之后,您必须订阅。

Your help would be highly appreciated! 非常感谢您的帮助!

From Apple's developer guidelines : 根据Apple的开发人员指南

Apps using IAP to purchase physical goods or goods and services used outside of the application will be rejected 使用IAP购买物理商品或在应用之外使用的商品和服务的应用将被拒绝

If your premium web service is at all useable outside the app itself, in-app-purchase won't be a solution, so you'll have to implement the logic on your server, based on user names, etc. 如果您的高级Web服务在应用程序本身之外根本无法使用,则应用程序内购买将不是解决方案,因此您必须根据用户名等在服务器上实现逻辑。

If, however, it's simply a web service that iOS accesses—think if Instagram offered a paid upgrade in the days before their Android app—then you could use IAP subscriptions to do the trick. 但是,如果它只是iOS可以访问的一项Web服务(例如Instagram是否在其Android应用之前的几天内提供了付费升级),那么您可以使用IAP订阅来解决问题。 Again, from Apple's documentation : 再次,从苹果的文档

  • Auto-renewable subscriptions are delivered to all of a user's devices in the same way as non-consumable products. 自动续订的订阅以与非消耗性产品相同的方式传递到所有用户的设备。 However, auto-renewable subscriptions differ in other ways. 但是,自动续订订阅在其他方面有所不同。 When you create an auto-renewable subscription in iTunes Connect, you choose the duration of the subscription. 在iTunes Connect中创建自动续订的订阅时,请选择订阅的期限。 The App Store automatically renews the subscription each time its term expires. 每次订阅期满时,App Store都会自动续订。 If the user chooses to not allow the subscription to be renewed, the user's access to the subscription is revoked after the subscription expires. 如果用户选择不允许更新订阅,则订阅到期后,用户对订阅的访问将被撤消。 Your application is responsible for validating whether a subscription is currently active and can also receive an updated receipt for the most recent transaction. 您的应用程序负责验证订阅是否当前处于活动状态,并且还可以接收最新交易的更新收据。

As a side note, it looks like Apple are about to implement free trials, but haven't quite done it yet (there are some interesting hints in some of the documentation, but there's not an option when creating an IAP subscription yet). 附带一提,Apple似乎即将实施免费试用,但尚未完全免费(某些文档中有一些有趣的提示,但是创建IAP订阅时还没有选择)。

I suggest you put some UI in that invites users to subscribe to the free service, and save that YES/NO answer along with the [NSDate date] in a defaults variable synced to iCloud . 我建议您在其中放入一些邀请用户订阅免费服务的UI,并将YES / NO答案连同[NSDate date]一起保存在与iCloud同步的默认变量中。 This means that it will be tied to their Apple ID, and can't easily be deleted by removing the app—next time they install it, you can restore that preference key. 这意味着它将与他们的Apple ID绑定在一起,并且无法通过删除该应用程序轻松删除-他们下次安装该应用程序时,可以还原该首选项密钥。

Then, once the trial period is up, bring up your custom UI (since all the IAP UI is custom!) that gives people the chance to subscribe to an ongoing service using the auto-renewable subscription. 然后,一旦试用期结束,请调出您的自定义UI(因为所有IAP UI都是自定义的!),使人们有机会使用自动可更新订阅来订阅正在进行的服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM