Skip to content

Commit

Permalink
Minor documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Sep 9, 2024
1 parent 63234db commit 0dd7a18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ If this is the case, then somewhere in your project you're checking if the curre
// async/await call
let customerInfo = try await Purchases.shared.customerInfo()

//
// closure-based call
Purchases.shared.getCustomerInfo { (customerInfo, error) in
// access latest customerInfo
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/FreemiumKit/FreemiumKit.docc/SetupGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Learn how to set up your app for our paywalls and live push notifications.

## Understanding Apples Tier System

If your goal is to ship your app with any combination of Monthly, Yearly, and Lifetime purchases, you most likely only need one tier: Tier 1. Just pass `1` for the `purchasedTier` parameter everywhere – easy. Continue to the next section.
If your goal is to ship your app with any combination of Monthly, Yearly, and Lifetime purchases, you most likely only need one tier: Tier 1. Just pass `1` for the `purchasedTier` parameter everywhere or don't pass any, `1` is the default value – easy. Continue to the next section.

But if you want to support multiple levels of access to your app, like a combination of Monthly/Yearly/Lifetime for the 'Pro' level, another combination of Monthly/Yearly/Lifetime for the 'Max' level, and maybe another combination of Monthly/Yearly/Lifetime for the 'Ultra' level, that's when you need to think about which value to pass to the `purchasedTier` parameter. Note that `1` always refers to the highest level. That's how Apple has decided their tier system to work. Read their [official docs](https://developer.apple.com/help/app-store-connect/manage-subscriptions/offer-auto-renewable-subscriptions) to learn more.

Expand Down

0 comments on commit 0dd7a18

Please sign in to comment.