iOS in app purchase receipt with different itunes user

1.6k views Asked by At

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?

1

There are 1 answers

1
user501836 On

must refresh the receipt.

    SKReceiptRefreshRequest *request = [[SKReceiptRefreshRequest alloc] init];
    request.delegate = self;
    [request start];