iosobjective-csubscriptionauto-renewable

Check In-app purchase auto renewal subscription in sandbox mode


I'm having a delay in receipt updating for the auto renewal in my app.

As a example if user subscribed for 7 day subscription with one week free trial,

So according to above the info, the within the first 15 mins I should have a active subscription. But sometimes it doesn't returns a active subscription.

The issue I found is even after the first 3 mins, the receipt has not renewed, So there for when I compare the expire date with the current time it returns as subscription period expires.

Is this something common in sandbox mode or am I doing something wrong?


Solution

  • Some how i was able to solve the issue. Initially in my device i have not set my time set automatically. Some how the time which i have set is 5 mins more than the real time. So when validating the the expire date it always shows as a expired subscription.

    Since the time period really small(3 mins) for a week, when testing in sandbox mode. It gave me the wrong information, i guess.

    Hope this will be helpful.Thanks.