1

我有一个销售虚拟电话号码的应用程序。当用户订阅时,我们会提供一个新的虚拟号码,用户可以在应用程序中管理这个号码。之后,用户可以接听电话,但不必通过应用程序接听电话。我的意思是,在初次购买后,用户无需打开应用程序即可使用该服务,但我需要一种每月检查订阅状态的方法。我的问题是,即使用户不再打开应用程序,我是否可以在服务器中设置一个 cron 来检查下一个收据?是否可以出售不是通过应用程序提供的订阅服务?谢谢。

4

3 回答 3

0

您可以使用 Apple 的 Auto-renewable 订阅来为您的用户提供服务。

  1. 当用户第一次购买订阅时,将收据存储在服务器中。

  2. 在服务器数据库中维护每个用户的订阅到期日期。

  3. 运行 cron 作业并通过苹果 API http://tinyurl.com/ay2labm检查订阅的“活动状态”

  4. 根据状态,您可以将服务扩展到您的用户。

    http://tinyurl.com/aeh9f84

于 2012-11-10T06:42:42.617 回答
0

看看这个管理 IAP 和推送通知的服务.. http://urbanairship.com/

如果您的服务符合自动更新订阅的条件,您可以使用它(这很棘手,因为如果应用程序不提供内容,他们会拒绝此服务。在此处查看更多信息:http: //developer.apple.com/library/ios/#文档/NetworkingInternet/Conceptual/StoreKitGuide/RenewableSubscriptions/RenewableSubscriptions.html )

于 2012-11-12T08:22:01.203 回答
0

I've not done this myself, but the gist I get from the store docs is that you will verify the receipt and get an updated transaction if the subscription has been renewed. So presumably on your server you have some indication of when the original subscription was purchased and the time, so you would check before it expires and get the new transition.

I'd suggest maybe using push notification if this were to fail, to engage the user to update/renew.

于 2012-11-05T21:19:56.450 回答