Download fallback paywalls
A paywall is an in-app storefront where customers can see and purchase products within your mobile app. Typically, paywalls are fetched from the server when a customer accesses them.
Adapty allows you to define fallback paywalls for the situations when a user opens the app without a connection to the Adapty backend (e.g., no internet connection or in the rare case of backend unavailability) and there's no cache on the device.
Adapty generates fallbacks as a JSON file in the necessary format, reflecting the default (English) versions of the paywalls you've configured in the Adapty Dashboard. Simply download the file - one per app store, place it alongside your app on the user's device, and pass its contents to the .setFallbackPaywalls
method, following the instructions outlined below.
Before you start adding local fallback paywalls (Click to Expand)
- Create products you want to sell.
- Create paywalls and add the products to the paywalls. Paywalls are in-app stores in your mobile apps.
- Create placements and add paywalls to the placements. Placement is the location where the paywall will be shown.
To download the JSON file with the fallback paywalls:
-
Open the Paywalls and Products section from the Adapty main menu, then select the Products tab or just the Placements section in the Adapty main menu.
- In the Products or Placements window, click the Fallbacks button. In both cases, you will get the same file. Use its contents in the
fallback_paywalls
method in your mobile app code.