Android在应用购买不跨多个设备同步立即多个、设备、Android

由网友(奋斗之路加满油)分享简介:我在一个设备上购买的项目。然后我去了其他设备,启动应用程序,但该项目的购买信息仍然不可用于第二个设备上使用(当你查询库存iabhelper没有回报的项目)。试图购买只显示已拥有对话框。 (我可能用这个作为一个点继续前进,下载该项目,但感觉怪怪的...)I purchased an item on one device...

我在一个设备上购买的项目。然后我去了其他设备,启动应用程序,但该项目的购买信息仍然不可用于第二个设备上使用(当你查询库存iabhelper没有回报的项目)。试图购买只显示已拥有对话框。 (我可能用这个作为一个点继续前进,下载该项目,但感觉怪怪的...)

I purchased an item on one device. Then I go to the other device, launch the App, but the item's purchase information is still not available for use on the second device (iabhelper does not return the item when you query the inventory). Attempting to purchase just shows the "Already owned" dialog. (I could possibly use this as a point to go ahead and download the item, but feels weird...)

这是迄今为止作品唯一的解决办法是,如果我重新启动设备,然后我立刻看到我的UI(而不是买入)的下载选项,因为Iabhelper然后返回正确的信息)

The only solution that works so far is if I restart the device, then I immediately see the Download option in my UI (instead of Buy), since Iabhelper then returns the correct info)

别人的脸这个问题?有一种解决方法,这使得它的无缝用户?

Anybody else face this issue? Is there a workaround which makes it seamless to the user?

推荐答案

我不是100%肯定,但谷歌播放服务是最有可能使用他们的数据存储,它具有最终一致性,这意味着并不是一切都马上同步。只是一个猜测。你可以尝试清除谷歌播放服务的缓存,但我猜这是因为重新启动该设备作为烦人。

I am not 100% sure but Google Play Services are most probably using their data storage, which has eventual consistency, and that means that not everything is synchronized right away. Just a guess. You can try clearing the Google play services cache, but I'm guessing that it is as annoying as restarting the device.

阅读全文

相关推荐

最新文章