0
votes

I'm implementing Auto-renewal with trial period,Now I'm testing with Sandbox Account.I Have a couple of questions,Please help me.

1.After purchasing I'm validating receipt whether he is free trail or not, but receipt "is_trial_period" is false, I need to know whether user is in free trail or not?

2.If user deletes the app and re-install again in the same device or in another device can i get receipt again?

3.If i wont get receipt after re-install how can i unlock the feature for subscription as he already subscribed?

4.If user cancels the subscription in the trail period, how would i know that is cancelled?

5.If user cancels Subscription, If i restore the purchases, then shall i get purchases in restore transaction?

1

1 Answers

0
votes

I may answer some of those questions:

  1. If you get receipt by Sandbox account, receipt will only active for 5 minutes. Probably is_trial_period will be true on real users.
  2. If user deletes the app from device and re-install with same devices you can retrieve receipt but if user install in different device he/she must be restore purchase with Apple ID which bought subscription.
  3. Check answer 2.
  4. Receipt has expires_date and you can check it if user cancelled or not.
  5. Probably related to 4th answer.

I hope those can help.