如何跟踪与特定游戏中心用户相关的购买
我正在寻找有关如何将购买与特定用户(例如游戏中心用户)(基本上是进行购买的用户)相关联的建议。购买的是消耗品或订阅,因此无法恢复。
我使用服务器产品交付模式的整体设计在很大程度上是有效的,但在事务中断时,它不适用于某些边缘或负面情况。例如,
- gamecenter_user1 进行购买付款
- ,但应用程序已终止
- 从游戏中心应用程序以 gamecenter_user2 身份登录
- 重新启动应用程序
- SKPaymentTransactionObeserver 接收交易更新
- gamecenter_user2 获取购买
在进行购买之前,我知道进行购买的用户和产品标识符,我可以保存这个信息。但是,在收到 App Store 的交易或收据后,我如何识别进行此购买的用户?
谢谢
I am looking for advice on how to associate a purchase with a particular user, (for example, a game center user) basically the user who makes the purchase. The purchase is a consumable item or subscription, so it can't be restored.
My overall design using server product delivery mode is largely working, but it doesn't work with some edge or negative cases, when a transaction is interrupted. For example,
- gamecenter_user1 makes the purchase
- payment is made but app is terminated
- log in as gamecenter_user2 from game center app
- relaunch the app
- SKPaymentTransactionObeserver receives transation update
- gamecenter_user2 gets the purchase
Before making a purchase, I know the user who makes the purchase, and product identifier, I can save this information. However after receiving transaction or receipt from App Store, how do I identify the user who made this purchase?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的一面是 - 我听说过应用程序传递设备 UDID。我认为这是很常见的做法。
这样做有两个缺点:
如果有人更改设备,UDID 将不会持久。
人们似乎对应用程序在他们不知情的情况下将其 UDID 传输到外部服务器这一事实感到有些愤怒。 (我不知道为什么 - 但这让一些人感到害怕 - 最近有这样的新闻)。
On the good side - I've heard of applications passing the devices UDID. I think this is pretty commonly done.
There are two downsides to this:
The UDID would not be persistant if someone changed devices.
People seem to be somewhat up-in-arms about the fact that applications are transmitting their UDID to outside servers without their knowledge. (I don't know why - but this freaks some people out - there's been news of it lately).