有没有办法识别购买应用程序的帐户?
我想使用应用内购买将内容下载到应用程序。为了防止内容被“窃取”,我想给每个用户一个加密的下载链接,该链接只能在当前设备上解密。存储加密链接的文件应在同一用户的其他设备上同步,因此使用 UUID 进行加密/解密将不起作用。
是否有一些信息(帐户 ID、哈希值等)可供我的应用程序在所有用户设备上查询,并且在使用相同 itunes 帐户购买应用程序的设备上调用时会给出相同的结果?
如果不是,解决原始问题的适当方法是什么?我想防止有人从一台设备获取下载链接并在另一台设备上使用它而无需付费。
I want to use In-App-Purchase to download contents to an app. To prevent the content from being "stolen", I want to give every user an encrypted download-link, which only can be decrypted on the current device. The file(s) where the encrypted links are stored should be synchronized on other devices of the same user, so using the UUID for encryption/decryption won't work.
Is there some information (account-id, hash, whatever), that my app can query on all of the users devices and that gives the same result when called on devices that bought the app with the same itunes account?
If not, what would be the appropriate way to solve the original problem? I want to prevent somebody getting the download-link from one device and using it on another device without having to pay for it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信 Store Kit 框架会为您解决这个问题。除非我误解了你的问题。我不确定如果您的内容只能在您的应用确认付款已获得授权后才能由您的应用下载,那么您的内容如何会被盗。
来自 iOS 开发者指南:
I believe that the Store Kit framework will take care of this for you. Unless I misunderstand your question. I'm not sure how your content could be stolen if it can only be downloaded by your app after your app confirms that payment has been authorized.
From the iOS Developer Guide:
完成您想要做的事情的更好方法是将 IAP 收据发送到服务器,并在收据验证时让它响应内容。请参阅验证商店收据。
A better way to accomplish what you are trying to do is to send the IAP receipt to the server and have it respond with the content if the receipt validates. See Verifying Store Receipts.