robotmedia/RMStore

TestFlight vs Sandbox for RMAppReceipt

Opened this issue · 0 comments

In development (XCode 10, iOS12), I'm able to use RMAppReceipt to verify autorenewing subscriptions just fine, using:

RMAppReceipt *appReceipt = [RMAppReceipt bundleReceipt];  
    if (appReceipt) {
        isActive =  [appReceipt containsActiveAutoRenewableSubscriptionOfProductIdentifier:@"0001" 
        forDate:[NSDate date]];
    }
    if (isActive) {
        NSLog(@"PatronSignupViewController: Got a list of subscriptions, a subscription IS active! Restored!");
    } else { //if receipt does not contain an active subscription
        NSLog(@"PatronSignupViewController: Got a list of purchases, but Subscription NOT active!");

However, when I use TestFlight to beta test the app, the system can never find the autorenewing subscription (after I've purchased it in TestFlight - purchasing in TestFlight works fine in TestFlight too).

Is there something fundamentally different that I should be aware of when it comes to purchases, products, RMStore, and TestFlight and Sandbox behaviors? Thx