Android在应用购买不跨多个设备同步立即 [英] Android In App purchases not syncing immediately across multiple devices

查看:134
本文介绍了Android在应用购买不跨多个设备同步立即的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个设备上购买的项目。然后我去了其他设备,启动应用程序,但该项目的购买信息仍然不可用于第二个设备上使用(当你查询库存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.

这篇关于Android在应用购买不跨多个设备同步立即的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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