Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestFlight vs Sandbox for RMAppReceipt #227

Open
dflateau opened this issue Jun 2, 2019 · 0 comments
Open

TestFlight vs Sandbox for RMAppReceipt #227

dflateau opened this issue Jun 2, 2019 · 0 comments

Comments

@dflateau
Copy link

dflateau commented Jun 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant