I am trying to add a monthly auto renewable subscription to my app.
I do not understad why the following happens:
I just create a new sandbox tester and add it to my iPhone device in settings > iTunes & App Store > Sandbox Account
I delete the app from the device and in XCode I do Product > Clean & build folder and then install the app in the device.
When the app is launched I start observing the Payment Queue by adding:
SKPaymentQueue.default().add(self)Then the following function is called:
func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction])At this point in the debug console:
(lldb) po transactions.count
return 9
(lldb) po transactions[0].payment.productIdentifier
return the product identifier of my monthly auto renewable subscription
And the SKPaymentTransactionState of the transaction is purchased before I buy a subscription with this new sandbox user.
Why is this happening?
Is there any way to remove for all sandbox users all previous purchases?