Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/tools/paywalls-v2/creating-paywalls/variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,9 @@ The paywall preview is generated using our example values for each package liste

To see a more accurate preview, we recommend running your application on your physical device or in the simulator, as this will present details based on the actual information for the products you're displaying on that device.
:::

## FAQs

| Question | Answer |
| ------------------ | ------------------|
| How is the `product.relative_discount` variable calculated? | `relative_discount` returns the localized discount percentage of a given package compared to the most expensive package per period that's offered on your paywall. For example, if you're displaying a monthly package that is $10/month, and a yearly package that is $80/year (or $6.67/month), the relative discount for the annual package is 67%. Because of this, we recommend only using this variable within packages that are NOT the most expensive package per period, as the most expensive package will have a null value returned, since its relative discount is null. |
7 changes: 6 additions & 1 deletion docs/tools/paywalls-v2/displaying-paywalls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ These docs refer to our beta of Paywalls v2. For our original Paywalls, [click h

### iOS

RevenueCat Paywalls v2 will show paywalls fullscreen, and there are multiple ways to do this with SwiftUI and UIKit.
RevenueCat Paywalls v2 will show paywalls fullscreen on iPhone, and there are multiple ways to do this with SwiftUI and UIKit.

- Depending on an entitlement with `presentPaywallIfNeeded`
- Custom logic with `presentPaywallIfNeeded`
Expand Down Expand Up @@ -53,6 +53,11 @@ import objc5 from "!!raw-loader!@site/code_blocks/tools/paywalls_5.m";

]}/>

#### Paywalls on iPad
When using `presentPaywallIfNeeded` to display a paywall on iPad, we'll automatically show a paywall in a modal that is roughly iPhone sized. If instead you prefer to show a paywall that is full screen on iPad, you can use the `PaywallView` or `PaywallViewController` methods instead.

![Paywalls on iPad](/images/paywalls-on-ipad.jpeg)

### Android

RevenueCat Paywalls will, by default, show paywalls fullscreen and there are multiple ways to do this with `Activity`s and Jetpack Compose.
Expand Down
Binary file added static/images/paywalls-on-ipad.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.