如何跟踪与特定游戏中心用户相关的购买

发布于 2024-09-29 19:28:24 字数 431 浏览 2 评论 0原文

我正在寻找有关如何将购买与特定用户(例如游戏中心用户)(基本上是进行购买的用户)相关联的建议。购买的是消耗品或订阅,因此无法恢复。

我使用服务器产品交付模式的整体设计在很大程度上是有效的,但在事务中断时,它不适用于某些边缘或负面情况。例如,

  • 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 技术交流群。

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

发布评论

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

评论(1

Smile简单爱 2024-10-06 19:28:24

好的一面是 - 我听说过应用程序传递设备 UDID。我认为这是很常见的做法。

这样做有两个缺点:

  1. 如果有人更改设备,UDID 将不会持久。

  2. 人们似乎对应用程序在他们不知情的情况下将其 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:

  1. The UDID would not be persistant if someone changed devices.

  2. 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).

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