I have integrated in-app in my Andorid application for single Product productone.
For that, I have created different Product-Ids in my Google Play Console as below :
1. productone.monthly, 2.productone.yearly
As per my knowledge both the Product Ids will work independently since we can not group them together like it does in IOS-App Store.
Now, I have some doubts as below :
doubt 1 : If User purchased productone.yearly and payment done, What If User again by productone.monthly ?
and Vise Versa ?
I have to manage it from my side ? Like If I get that user purcahsed it for Yearly, I have to restrict the user to do not buy monthly subscription.
Please guide. Thanks.
Before coming to your two cases, note that you get all the purchase List from PurchaseResult object. So you get the purchase id lists. Now, there are two possible cases -
User has puchased your monthly product - 1. productone.monthly (if this is purchased, it will come in the list)
In this case, you can show the billing dialog for yearly product. As you want your user to pay more for your app (Of course yearly plan will cost more for user and you are building your app to make money).
User has puchased your yearly product - 2. productone. yearly (if this is purchased, it will come in the list)
In this case, you don't need to show billing dialog for monthly plan. As you don't want your user to pay less for your app (Don't allow plan downgrading).
Just in case you are thinking to allow both the options, follow this -
https://developer.android.com/google/play/billing/billing_subscriptions#Allow-upgrade
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With