使用 iOS 应用内购买重新下载项目的设计,该项目在下载时是免费的,但后来更改为非消耗性项目

发布于 2024-12-05 08:14:50 字数 408 浏览 1 评论 0原文

抱歉发了这么长的帖子。

我有一个 iOS 应用程序,用于销售非消耗性 InAppPurchase 商品。我有免费的项目,这些项目由内容服务器处理,它只是跳过 Apple 收据确认并开始下载。免费和非免费项目在内容服务器方面的存储方式相同,只有布尔属性将它们分开。

问题是,我会在有限的时间内免费获得一个项目,然后将该项目切换为非免费,因此在该时间之后需要收据。当有人卸载该应用程序、删除该项目并重新安装并认为他们可以免费再次下载该应用程序时,一切都会出错,但由于该应用程序被设置为非免费,所以他们不能这样做。

我希望在免费时下载的人能够在该项目设置为非免费后下载,我能想到的唯一方法是将购买信息保存在内容服务器上,并提供一种方法以某种方式识别对用户的每个请求。

有什么办法可以做到这一点吗?有没有人有做类似事情的经验并愿意分享?提前致谢。

Sorry for the long post.

I have an iOS app that sells non-consumable InAppPurchase items. I have free items, which are handled by the content server, which just skips the Apple receipt confirmation and starts the download. Both free and non-free items are stored the same way content-server wise, only a Boolean attribute sets them apart.

The problem is, I would have an item for free for a limited time, and then switch the item to non-free, thus requiring a receipt after that time. It all goes wrong when someone uninstalls the app, erasing the item and re-installs thinking they can just download it again for free, but they can't since its been set to non-free.

I would like the people who downloaded while it was free to be able to download after the item is set to non-free, the only way to do this that I can think of is hold the purchase information on the content server and a way to identify each request to a user somehow.

Is there any way to do this? Does anyone have experience in doing something like this and is willing to share it? Thanks in advance.

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

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

发布评论

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

评论(1

活泼老夫 2024-12-12 08:14:50

获取免费物品时,您需要向用户请求任何类型的身份证明。使用它来获取他们的电子邮件地址、Facebook/Twitter 凭据等。

如果用户没有使用应用内购买,这是允许用户稍后恢复其购买的唯一方法。

您应该让用户知道,只有输入某个 ID,才能恢复不是通过 IAP 完成的购买。

You will need to request any kind of identification from users, when getting the free item. Use this to get their e-mail address, Facebook/Twitter credentials, etc.

It's the only way to allow the user to recover their purchases later on, if they were not done using in app purchase.

You should let the user know that only by entering some ID, it will be possible to restore the purchases that weren't done via IAP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文