Does In App Billing support multiple accounts?

谁说胖子不能爱 提交于 2019-11-28 11:12:18

In App Billing support multiple accounts reported as a bug in code.google, have a look at it

According to Mr.Sergej (posted in G+ android dev community) in-app products purchased with the first account won't be active anymore while using multiple user accounts!.

InApp billing just charges the user and tells your app whether it was successful or not. It is up to you to figure out how to give the user what they purchased.

You can... toggle the SharedPreferences of the app to save their purchase. Obviously multiple people can use the same app on the same device with the purchase.

provide login functionality to save a purchase to a server, in case the user deletes the app or gets a new device.

Use one-time purchases to check whether the user has purchased previously. This won't carry over to several accounts on different devices/multiple-accounts-per-device.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!