NMahendroo
NMahendroo

Reputation: 96

How to avoid giving free trial of the Application's In-App Subscription to users who already have consumed it?

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:

  1. my_in_app_subscription_with_trial: It will give any new user the benefits of Free trials.
  2. my_in_app_subscription_without_trial: It will start the subscription the moment the user buys it. I can use this for those users who already have consumed the free trial.

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

Answers (1)

DrPower
DrPower

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

Related Questions