获取在应用内付费购买中使用的 Google ID [英] Get the Google ID used in an in-app billing purchase

查看:50
本文介绍了获取在应用内付费购买中使用的 Google ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到一台设备可能同时登录了多个 Google 帐户.据我所知,在Honeycomb 之前,有一个主要ID;从 Honeycomb 上,您可以简单地插入几个.我目前有两个 ID 登录到我的测试平板电脑.

It has come to my attention that a device may have multiple Google accounts logged into it simultaneously. I understand that pre-Honeycomb, there is a primary ID; from Honeycomb on you can simply plug in several. I currently have two IDs logged into my test tablet.

从 Google Play 购买时,您可以选择使用哪个帐户进行购买.我想将应用内结算添加到我正在编写的应用程序中,并且我想确保每个 Google ID 都能在任何设备上进行购买,这意味着我首先需要知道使用哪个 ID 进行购买.这意味着我需要执行以下操作之一:

When purchasing from Google Play you can choose which account is used to make a purchase. I want to add in-app billing to an application I'm writing, and I want to make sure each Google ID gets its purchases on any device, which means I need to know which ID was used to make the purchase in the first place. This means I need to do one of the following:

  1. 强制 Google Play 使用用户从我的应用中选择的 Google ID 之一;
  2. 检索 Google Play 用于购买的 ID.

该文档似乎是在假设只有一位购买者会在一台设备上处于活动状态的情况下编写的.可以这样做吗?

The documentation seems to have been written with the assumption that only one purchaser would ever be active on one device. Is it possible to do this?

推荐答案

这似乎是 Google PlayStore 应用程序的问题.在

This seems to be an issue with the Google PlayStore application. The same has been reported at

https://code.google.com/p/marketbilling/问题/细节?id=76

这篇关于获取在应用内付费购买中使用的 Google ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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