I am implementing Google's In-App Billing Library in my application and would like to know the best way to handle the following cases
- Multiple Device and Single User
Use Case:
- User U1 with Google Play Store Account G1 subscribes to Subscription S1.
- Now User U1 log out from the app and User U2 login the app.
Queries:
- What will happen if User U2 tries to subscribe the Subscription S1?
- Shall we restrict the User U2 by saying "This Subscription has already been subscribed to some other user from this Google Account"?
- Single Device and Multiple User
Use Case I:
- User U1 with Google Play Store Account G1 subscribes to Subscription S1.
- User U1 with Google Play Store Account G2 tries to subscribe Subscription S1.
Queries:
- Shall we restrict the User U1 by saying "You have already subscribed to this subscription by some other Google Account"?
Use Case II
- User U1 with Google Play Store Account G1 subscribes to Subscription S1.
- User U1 with Google Play Store Account G2 tries to subscribe Subscription S2.
Queries:
- Shall we allow the user to subscribe to different subscriptions with different Google Account?
General Queries:
- Shall we map each user with a different Google Account and if the user tries to purchase with some other Google Account, restrict it OR ask him to delink his existing linked Google Account first?
- Can we subscribe(purchase) a subscription from 2 users using the same Google Play Account? (Say using different
accountId
https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid)
I am expecting a response to my queries in terms of best practices and facts.