I'm implementing auto renewable subscriptions in my app and I wonder if there is a way to simulate when a subscription period runs out and a new transaction is created.
The app is connected to a online service that always keeps track of the users and if they have "premium access" or not. As understand i, there are two ways to detect when a transaction is made.
The app is launched and updatedTransactions: is called in my PaymentObserver as a SKPaymentTransactionStateRestored. I then, from the app, send this information to the server which updates the subscription.
I regularly check the App Store API and compare the "latest receipt" with the one in my database. If there is a new one, a transaction has been made and I extend the subscription.
Either way, I need to simulate that the subscription period runs out and a new transaction is made by the App Store. How do I do this?