Skip to content

Commit be06e58

Browse files
committed
Merge flow-builder into develop
2 parents 0070c02 + edec52e commit be06e58

15 files changed

Lines changed: 81 additions & 43 deletions

src/content/docs/version-3.0/add-offer-to-paywall.mdx renamed to _old/add-offer-to-paywall.mdx

File renamed without changes.
3.42 KB
Loading
56.3 KB
Loading

src/content/docs/capacitor/capacitor-quickstart-identify.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ If you know a customer user ID but set it only after the activation, that will m
9797
You can pass either an existing customer user ID (the one you have used before) or a new one. If you pass a new one, a new profile created on the activation will be automatically linked to the customer user ID.
9898

9999
:::tip
100-
To exclude created empty profiles from the dashboard [analytics](analytics-charts), go to **App settings** and set up [**Installs definition for analytics**](general#4-installs-definition-for-analytics).
100+
To exclude created empty profiles from the dashboard analytics, go to **App settings** and set up [**Installs definition for analytics**](general#4-installs-definition-for-analytics).
101101
:::
102102

103103
```typescript showLineNumbers

src/content/docs/guides/flow-builder/customize-flow-with-remote-config.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ Next, [create a placement](create-placement) and add the flow to it. Then [rende
102102

103103
## Add a locale
104104

105-
To localize your flow, click **Add locale** above the editor and fill in:
106-
107-
- **Code**: The locale code, for example `en`, `fr`, or `de`.
108-
- **Name**: The display name, for example English or French.
105+
To localize your flow, click **Add locale** above the editor and select locales.
109106

110107
Adapty adds a new column to the editor for that locale. Edit each column independently — at runtime, the SDK returns the `AdaptyRemoteConfig` entry whose `locale` matches the user's selection.
111108

src/content/docs/ios/ios-paywalls.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ For more guides on implementing paywalls and handling purchases manually, see th
2424

2525
## Useful features
2626

27-
<CustomDocCardList ids={['ios-use-fallback-paywalls', 'localizations-and-locale-codes', 'ios-web-paywall', 'ios-handle-permissions']} />
27+
<CustomDocCardList ids={['ios-use-fallback-paywalls', 'localizations-and-locale-codes', 'ios-web-paywall']} />

src/content/docs/version-3.0/add-paywall-locale-in-adapty-paywall-builder.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Finish setting up your flow in the default locale before adding other languages.
1212

1313
## Add and set up localization
1414

15-
1. In the left panel, click <Inline id="localizations.svg" alt="Localizations" />. Then, click **Add locale**. Enter the locale code (e.g., `fr`) and name (e.g., `French`), then confirm. Repeat for each locale you want to add.
15+
1. In the left panel, click <Inline id="localizations.svg" alt="Localizations" />. Then, click **Add locale**. Select the languages to add.
1616

1717
<ZoomImage id="new-locale-flow.webp" width="500px" alt="Add locale dialog" />
1818

@@ -64,9 +64,9 @@ Example:
6464

6565
```
6666
Screen Element Property en fr es
67-
Welcome title content Turn words into art Transformez les mots en art
68-
Welcome subtitle content Create stunning images in seconds with AI Créez des images en quelques secondes
69-
Quiz quiz-title content What will you create?
67+
Welcome title content Turn words into art Transformez les mots en art
68+
Welcome subtitle content Create stunning images in seconds with AI Créez des images en quelques secondes
69+
Quiz quiz-title content What will you create?
7070
```
7171

7272
:::note

src/content/docs/version-3.0/app-store-offers.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,4 @@ Adapty automatically applies win-back offers if users are eligible. Set up your
111111
After you've added offers, continue the setup:
112112
- If you also have **Google Play apps**, set up [Google Play offers](google-play-offers).
113113
- If you have **promotional or win-back offers**, [add them to Adapty](create-offer).
114-
- If you only have **introductory offers** and no promotional or win-back offers, you're all set. These sections may still be useful:
115-
- [Working with offers in the Adapty Paywall Builder](create-offer#paywall-builder)
116-
- [How Adapty works with offers](create-offer#how-adapty-works-with-offers)
114+
- If you only have **introductory offers** and no promotional or win-back offers, you're all set. The [How Adapty works with offers](create-offer#how-adapty-works-with-offers) section may still be useful.

src/content/docs/version-3.0/create-offer.mdx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Adapty allows you to offer trials or discounts to new, existing, or churned subs
1313
After you have set them up in App Store Connect or Google Play Console, you need to add them to Adapty in two steps:
1414

1515
1. [Add offers to products in Adapty using the offer IDs from stores.](#1-create-offer)
16-
2. [Add offers to paywalls so they can be applied.](#2-add-offer-to-paywall)
16+
2. [Display the offer in a flow or paywall.](#2-display-offer)
1717

1818
:::warning
1919
Introductory offers (App Store) are applied automatically if the user is eligible. Do not add them to products in Adapty.
@@ -63,34 +63,34 @@ If the **App Store Offer ID** or **Play Store Offer ID** field is not active, sw
6363
6. (optional) Add more offers if needed by clicking **Add offer**.
6464
7. Click **Save** to add the offers to the product.
6565

66-
## 2. Add offer to paywall
66+
## 2. Display offer
6767

68-
:::info
69-
You can't add offers to paywalls in the **live** status. If you want to add an offer to an existing paywall, [duplicate](duplicate-paywalls) it and configure products in a new paywall.
70-
:::
68+
Once an offer is attached to a product, surface it where users see that product — in a flow or in a paywall.
7169

72-
To make an offer visible and selectable within a [paywall](paywalls) for your app's users, follow these steps:
70+
### Add offer to flow
7371

74-
1. When creating or editing a paywall, in the **General** tab, add a product to which you've just added the offer.
75-
2. Choose an offer you [created earlier](create-offer) for this product from the **Offer** list. The list is available only for the products that have offers.
76-
3. If needed, add more products and offers, but you can add only one offer for each product.
72+
In the [Flow Builder](adapty-flow-builder), an offer is attached to a product on a Products element. First add the product element and assign products to it — see [Set up purchases](paywall-product-block).
7773

78-
<ZoomImage id="offer-paywall.webp" />
74+
To attach an offer:
75+
76+
1. On the canvas, select the product card that should show the offer.
77+
2. In the right panel, under **Product**, select the product, then pick the offer from the **Select offer (optional)** dropdown.
7978

80-
### Paywall builder
79+
<ZoomImage id="offer-flow.webp" width="500px" />
80+
81+
### Add offer to paywall
8182

8283
:::info
83-
Paywalls created with the Adapty Paywall Builder will display only the first phase of a [multi-phase Google subscription offer](https://support.google.com/googleplay/android-developer/answer/12154973). However, rest assured that when a user purchases the product, all offer phases will be applied as configured in Google Play.
84+
You can't add offers to paywalls in the **live** status. If you want to add an offer to an existing paywall, [duplicate](duplicate-paywalls) it and configure products in a new paywall.
8485
:::
8586

86-
When you create a paywall in the Adapty Paywall Builder, you have some more customization options for trials:
87-
- **Toggle**: In **Products**, set **Product grouping** to **Toggle** and add product-offer combinations for each toggle state. The most common use case is to include a product without an offer (e.g., direct purchase without a free trial) and a different product with an offer attached.
88-
89-
<ZoomImage id="trial-toggle.webp" />
87+
To make an offer visible and selectable within a [paywall](paywalls) for your app's users, follow these steps:
9088

91-
- **Dynamic text**: You can make the purchase button text change depending on the offer available to the user seeing the paywall. You can set different texts for **Default**, **Free trial**, **Pay as you go**, and **Pay up front**.
89+
1. When creating or editing a paywall, in the **General** tab, add a product to which you've just added the offer.
90+
2. Choose an offer you created earlier for this product from the **Offer** list. The list is available only for the products that have offers.
91+
3. If needed, add more products and offers, but you can add only one offer for each product.
9292

93-
<ZoomImage id="button-text.webp" />
93+
<ZoomImage id="offer-paywall.webp" />
9494

9595
## How Adapty works with offers
9696

src/content/docs/version-3.0/get-pb-paywalls.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Parameters:
105105
| **locale** | <p>optional</p><p>default: `nil`</p> | The identifier of the [paywall localization](add-paywall-locale-in-adapty-paywall-builder). Expected as a language code with one or two subtags separated by `-` (e.g., `en`, `pt-br`). See [Localizations and locale codes](localizations-and-locale-codes). |
106106
| **loadTimeout** | default: 5 sec | This value limits the timeout for this method. If the timeout is reached, cached data or local fallback will be returned. Note that in rare cases this method can timeout slightly later than specified in `loadTimeout`, since the operation may consist of different requests under the hood. |
107107
| **products** | optional | Provide an array of `AdaptyPaywallProduct` objects to optimize the display timing of products on the screen. If `nil` is passed, AdaptyUI will automatically fetch the necessary products. |
108-
| **systemRequestsHandler** | optional | An object conforming to `AdaptySystemRequestsHandler` that handles system permission and review requests triggered by flow actions. Required only if your flow includes such actions. See [Handle permission requests](ios-handle-permissions). |
108+
| **systemRequestsHandler** | optional | An object conforming to `AdaptySystemRequestsHandler` that handles system permission and review requests triggered by flow actions. Required only if your flow includes such actions. |
109109
| **assetsResolver** | optional | A `[String: AdaptyCustomAsset]` dictionary that overrides images and videos in the flow/paywall. See [Customize assets](#customize-assets). |
110110
| **timerResolver** | optional | An object conforming to `AdaptyTimerResolver` that supplies end dates for developer-defined timers. See [Set up developer-defined timers](#set-up-developer-defined-timers). |
111111

0 commit comments

Comments
 (0)