Reputation: 131
I am using receipt validation locally on device and targeting iOS 7+
I am testing auto renew subscription in app purchase in the sandbox environment and I noticed this scenario.
-User A is signed in iTunes account on device, purchases subscription in app, gets app receipt. -User A signs out iTunes account on device and User B signs in -User B launches app -User B will continue using User A’s subscription because [[NSBundle mainBundle] appStoreReceiptURL] is valid and will return User A's receipt.
How come it doesn't return User B's receipt?
Upvotes: 12
Views: 1691
Reputation: 1186
must refresh the receipt.
SKReceiptRefreshRequest *request = [[SKReceiptRefreshRequest alloc] init];
request.delegate = self;
[request start];
Upvotes: 0