Android:让Google Play帐户与应用内结算相关联 [英] Android: get Google Play account associated with in-app billing

查看:184
本文介绍了Android:让Google Play帐户与应用内结算相关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取与应用相关联的Google Play帐户的电子邮件/ ID?



我需要这个来向用户显示考虑哪个帐户应用内结算。据我了解,Google应用内结算使用下载该应用的帐户,但我需要找到一种方法将此信息显示给用户,以防他配置了多个帐户。



这样可以防止用户抱怨他们的购物没有被识别,当他们有另一个账户与应用程序关联时。 实际上不可能从Google Play获取下载该应用程序的帐户。
建议创建您自己的应用程序用户帐户,并且只允许在用户注册后购买(您可以使用任何您想使用的方法)。



而且,对于您在支持链接到用户帐户的每次购买。而且,如果用户使用其他Google帐户登录到其他设备,如果他使用正确的帐户登录到您的应用程序,则将被授予访问权限。



Google Play小组敬上意识到这不是最好的解决方案,正如我评论 ,我们正在改进API,只要我们有更新,我也会在这里发布。

How can I get the email/ID of the Google Play account associated with an app?

I need this to show the user which account is taken into consideration for in-app billing. As far as I understood, Google in-app billing uses the account which downloaded the app, but I need to find a way to display this to the user, in case he has more than one account configured.

This would prevent users to complain not having their purchases recognized, when they have another account associated with the app.

解决方案

Actually is not possible to get from Google Play the account that downloaded the application. The suggestion is to create your own application user's account and only allow purchases after user registration (you can use whatever method you want to use).

And, for each purchase you link in your backed to the user's account. And, if the users log into another device using another Google account, if he log into your application using the right account, the access will be granted.

Google Play team is aware that this is not the best solution, and as I commented on this question, we are improving the API and as soon as we have an update, I'll post here too.

这篇关于Android:让Google Play帐户与应用内结算相关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆