You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before you begin, make sure you have [configured your web paywall in the dashboard](web-paywall.md) and installed Adapty SDK version 3.6.1 or later.
11
11
:::
12
12
13
+
## Open web paywalls
14
+
13
15
If you are working with a paywall you developed yourself, you need to handle web paywalls using the SDK method. The `.openWebPaywall` method:
14
16
1. Generates a unique URL allowing Adapty to link a specific paywall shown to a particular user to the web page they are redirected to.
15
17
2. Tracks when your users return to the app and then requests `.getProfile` at short intervals to determine whether the profile access rights have been updated.
@@ -40,3 +42,29 @@ There are two versions of the `openWebPaywall` method:
40
42
| AdaptyError.productWithoutPurchaseUrl | The product doesn't have a web purchase URL | Verify the product configuration in the Adapty Dashboard |
41
43
| AdaptyError.failedOpeningWebPaywallUrl | Failed to open the URL in the browser | Check device settings or provide an alternative purchase method |
42
44
| AdaptyError.failedDecodingWebPaywallUrl | Failed to properly encode parameters in the URL | Verify URL parameters are valid and properly formatted |
45
+
46
+
## Open web paywalls in an in-app browser
47
+
48
+
:::important
49
+
Opening web paywalls in an in-app browser is supported starting from Adapty SDK v. 3.15.
50
+
:::
51
+
52
+
By default, web paywalls open in the external browser.
53
+
54
+
To provide a seamless user experience, you can open web paywalls in an in-app browser. This displays the web purchase page within your application, allowing users to complete transactions without switching apps.
55
+
56
+
To enable this, pass `WebPresentation.InAppBrowser` as the second argument to `openWebPaywall`:
0 commit comments