Skip to content

Instantly share code, notes, and snippets.

@jeiting
Created January 4, 2018 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeiting/ca32342120ae6e845dd593c25eeb0b54 to your computer and use it in GitHub Desktop.
Save jeiting/ca32342120ae6e845dd593c25eeb0b54 to your computer and use it in GitHub Desktop.
/**
This method will post all purchases associated with the current App Store account to RevenueCat and become associated with the current `appUserID`.
If this App Store account is already associated with another `appUserID` that has an active subscription this will produce an error. This prevents one App Store account from providing subscriptions for multiple users. This is the default behavior.
If the App Store account has no active subscriptions or purchases it will restore and transfer purchases and subscriptions to the current `appUserID`.
If you want to transfer purchases even if there is an active subscription, you can set this in the RevenueCat web app. You should use this if you app doesn't have a seperate account to system that you use to restore purchases.
*/
- (void)restorePurchasesForAppStoreAccount;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment