Does In App Billing support multiple accounts?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 06:00:41

问题


Does InApp billing (V2 or V3) works for a user who uses several accounts and makes the purchase with an account that isn't the primary one?

PD: Some explanation required, no simple Yes/No


回答1:


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!.




回答2:


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.



来源:https://stackoverflow.com/questions/15263889/does-in-app-billing-support-multiple-accounts

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