When I restore the user's purchases in ther iOS device, they can access the content if the subscription is currently active. What I want to do is grant access to the content published in the past if they had an active subscription then.
Example:
Anne purchases a 6 month subscription to a magazine on January 1st. When it ends she doesn't renew it. Then in October she has to format the iPad and reinstall the app. When she wants to download the February issue, is there a way to know that the subscription was active then?
You should check in app receipt, where you can find Subscription original Purchase date and subscription Expiration or Cancellation Date. Here is documentation