如何在我的应用程序中了解用户为我的应用程序支付了多少钱?
用户从应用商店购买应用并运行后,应用是否可以知道用户为此支付了多少钱? Apple 是否有任何 API 可以访问有关应用程序实际购买情况的此类元数据?
如果没有,我想我可以退回到查找用户所在的国家/地区,进行货币兑换率,然后在购买时查找应用程序的价格。那是另一回事,是否有可能知道用户何时购买了应用程序?他们可以购买一个应用程序,然后几天或几周都不会运行它,所以我不能假设他们首次启动该应用程序的日期也是购买日期。
关于如何获取这些信息有什么想法吗?
After a user purchases an app from the app store, and runs it, is it possible for the app to know how much the user paid for it? Does Apple have any APIs that can access this type of metadata about the actual purchase of an app?
If not, I suppose I could fall back to looking up the country of the user, doing currency conversion rates, and then lookup the price of the app at the time of purchase. That's another thing, is it even possible to know when a user has purchased an app? They could purchase an app, and then not run it for days or weeks, so I cannot assume the date they first launch the app was also the date of purchase.
Any thoughts on how to obtain this information?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是通过任何类型的 API 都不可能实现的。您可以做的是让设备在首次启动时将包含位置和日期的数据发送回您的服务器。这样,您可以在数据库中将它们标记为 xx 于该日期支付。您知道 yy 当前是什么,因为您运行服务器和应用程序页面。使此信息可以在您的服务器上以某种方式访问,并且当您在应用程序中需要它时,调用您的服务器方法来检索它。
This isn't possible through any kind of API. What you can do is have the device send data back to your server on first launch with location and date. This way, you can mark them in your DB as xx paid yy on this date. You know what yy is currently because you run the server and the app page. Make this info accessible somehow on your server, and when you need it in the app, call your servers method to retrieve it.