Skip to content

TestFlight vs Sandbox for RMAppReceipt #227

@dflateau

Description

@dflateau

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions