Reputation: 96
The problem I am facing is, A user can get the free trial benefits without any restriction of my In-App purchase by creating and logging in with new Apple or Google ID on their device.
I can maintain the list of users who already have consumed the free trial as the app requires sign-in and I can map that purchase with the account, but the Apple and Google won't recognise that user as the existing user for that purchase and will give the free trial benefit again without charging anything.
The one solution I came up with is to keep two Product ID on respective stores like:
or
Is there any way to give users free trial of In-App Subscription conditionally while requesting for Subscription from Respective Stores?
Any suggestions other than the above-mentioned?
I looked at this question Android in-app purchase of a subscription with a free trial - how to avoid abuse?
But the above scenario is taken care by Google and Apple.
Upvotes: 0
Views: 1023
Reputation: 445
On Google Play, you can call queryPurchaseHistory API in Play Billing Library. If you have seen the previous history record of your subscription item, then you know the user has used his free trial.
Login with a different Google ID through Google Sign-in won't help. Actually, the in-app purchases are tied to the account which downloaded your app. The user really have to completely log out the owner account from device and sign in with a new account to make this abuse.
Upvotes: 1