Download fallback paywalls
Typically, paywalls are fetched from the server when a customer accesses them.
Adapty allows you to define fallback paywalls and onboardings 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 .setFallback
method, following the instructions outlined below.
Before you start adding local fallback paywalls and onboardings (Click to Expand)
- Create products you want to sell.
- Create [paywalls].
- Create placements and add paywalls to the placements. Placement is the location where the paywall will be shown.
The JSON file with fallbacks contains both paywalls and onboardings at once. To download the JSON file, open Placements in the Adapty main menu. Click the Fallbacks button. You will get the JSON file. Use its contents in the setFallback method in your mobile app code.
