通过 IAP 每月订阅

发布于 2025-01-06 08:00:34 字数 414 浏览 3 评论 0原文

我有一个新闻阅读器应用程序。我想将 IAP 添加到我的应用程序中。 我添加了消耗品购买。当用户购买时,我将到期日期写入 nsuserdefaults。 当它过期时,我再次显示购买屏幕。

但苹果拒绝了, 它说: 但是,根据产品功能,使用应用内订阅购买类型会更合适,因为您的应用程序提供的服务需要用户预付款才能访问内容或接收服务。 ... 订阅内容必须可供单个用户拥有的所有 iOS 设备使用,如 App Store 审核指南的指南 11.6 中所示: ....

首先我尝试使用自动续订订阅,但我的应用程序没有任何内容可供下载。 然后我尝试实施非续订订阅。但人们说它已被弃用。 我想允许购买应用程序的用户也可以在其他设备上使用它。 但我无法获取AppleId(苹果也不允许)。 我真的被困住了。

如何向我的应用程序添加按月订阅?

谁能给我一些建议吗...

i have a news reader app. i want to add IAP to my app.
i added Consumable Purchase. when the user purchases i write expire date to nsuserdefaults.
when it expires i show purchase screen again.

but apple rejected it,
it says:
However, based on product functionality, it would be more appropriate to use the Subscription In App Purchase type because the service offered by your application requires the user to make an advance payment to access the content or receive the service.
...
Subscription content must be made available to all iOS devices owned by a single user, as indicated in Guideline 11.6 of the App Store Review Guidelines:
....

first i tried to use Auto-Renewable Subscription, but my app doesn't have any content to be downloaded.
then i tried to implement Non-Renewing subscription. but people say that it is deprecated.
i want to allow users who buyed app to use it on other devices too.
but i can't get AppleId (Apple doesn't allow it either).
I'm really stucked.

how can i add monthly subscription to my app?

can anyone give me some advice...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

稳稳的幸福 2025-01-13 08:00:34

我也经历过几乎完全相同的事情。您需要执行以下操作:

首先,尽管 Apple 的文档似乎表明不推荐使用非续订订阅,但事实并非如此。事实上,这就是苹果公司在拒绝我的应用程序使用自动续订订阅时引导我走向的方向。

在跨多个设备同步方面:我尝试使用存储在用户 iCloud 帐户上的唯一标识符来识别用户(就像 @Yorxxx 建议的那样),但 Apple 再次拒绝了该应用程序,称该指南指出,我需要提供一个可选用户名/密码系统,以允许用户在其所有设备上恢复订阅。

关于非续订订阅的一些注意事项:

  • 您可以设置并跟踪自己的持续时间和到期日期。
  • 您本质上必须从您自己的服务器管理该服务,因为您需要在用户的所有设备上同步其订阅。
  • 不会提示询问用户是否要将其联系信息发送给开发人员。
  • restoreCompletedTransactions 对于非续订订阅毫无用处。
  • 如果我是你,如果他们给你一个用户名,我会将其存储在 iCloud 上。这样,当他们在新设备上安装您的应用程序时,您可以提示他们已经有一个帐户,如果他们登录,他们现有的订阅将同步到该设备。

I've been through almost the exact same thing. Here's what you do:

First off, although Apple's documentation seems to suggest that Non-Renewing Subscriptions are deprecated, they are not. In fact, that's what Apple steered me towards when they rejected my app for using Auto-Renewing subscriptions.

In terms of syncing across multiple devices: I tried using a unique identifier that I stored on the user's iCloud account to identify a user (like what @Yorxxx suggested), but Apple rejected the app again, saying that the guidelines state that I need to provide an optional username/password system to allow a user to restore their subscription onto all their devices.

A few notes about Non-Renewing Subscriptions:

  • You set and track your own durations and expiration dates.
  • You essentially have to administer the service from your own server, since you'll need to sync a user's subscription across all their devices.
  • There is no prompt asking the user if they want to send the developer their contact information.
  • restoreCompletedTransactions is useless with Non-Renewing Subscriptions.
  • If I were you I would store the persons username on iCloud if they give you one. That way, when they install your app on a new device, you can prompt them that they already have an account and if they log in, their existing subscription will by synced to that device.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文