Fallback flows
To maintain a fluid user experience, it’s important to set up fallback versions of your flows.
When your application requests a flow, the Adapty SDK contacts our servers to fetch its configuration. If the SDK can’t get the flow from the main Adapty API (network issue, server outage), it falls back to other sources:
- If the user has already seen the flow once, the SDK serves the cached copy.
- If the main Adapty API doesn’t respond, the SDK requests the flow from a backup Adapty server.
- If neither works, the SDK loads a fallback configuration file bundled inside the app.
The backup server and the fallback file serve only the All Users audience and ignore segments. If you split audiences by platform, use products with both App Store and Google Play IDs in the All Users flow. Otherwise, the fallback flow has no products for users of the other store.
Adapty automatically generates these fallback files. The flow fallback bundle is shared with paywalls — a single JSON file per platform contains fallback variations for both. The SDK reads whichever section it needs.
Flow fallbacks ship in the Adapty SDK 4.0+ bundle. If you select an earlier SDK version in the download dialog, the file contains paywall and onboarding variations only — no flows. Make sure your app is on a flow-aware SDK release before relying on a flow fallback.
Before you start
- Create a flow in the Flow & Paywall Builder.
- Create a placement for the flow.
Download the fallback file
- Open the Placements page.
- Click the Fallbacks button at the top right.
- Select your target platform from the dropdown.
- Select the option that matches the Adapty SDK version in your app, such as Adapty SDK v4.4.0 and higher.
The browser downloads a JSON file per platform — for example, ios_4_0_0_fallback.json.
To download the file from the terminal instead, use the Developer CLI. Pass the Adapty SDK version your app is built with:
adapty fallbacks get --app <app-id> --platform ios --sdk-version <sdk-version> --output ios_fallback.jsonRun it once per store, with --platform ios or --platform android. See adapty fallbacks get for the flags.
Example flow fallback entry (click to expand)
"PLACEMENT_ID": {
"data": [
{
"developer_id": "PLACEMENT_ID",
"variation_id": "cb1c0ef8-aecd-4a53-a6f3-b98266e66884",
"flow_id": "daf25858-3fa2-4981-8500-9c8a30e5b7e6",
"flow_name": "FLOW_NAME",
"flow_version_id": "FLOW_VERSION_ID",
"placement_audience_version_id": "a9eb3ab8-3178-477d-84d4-ef9d3978e48b",
"audience_name": "All Users",
"ab_test_name": "",
"cross_placement_info": null,
"weight": 100,
"variations": [
{
"variation_id": "cb1c0ef8-aecd-4a53-a6f3-b98266e66884",
"paywall_id": "PAYWALL_ID",
"paywall_name": "PAYWALL_NAME",
"ab_test_name": "",
"products": [],
"revision": 1,
"custom_payload": null,
"weight": 100
}
],
"remote_configs": []
}
],
"meta": {
"placement": {
"developer_id": "PLACEMENT_ID",
"is_tracking_purchases": true,
"audience_name": "All Users",
"placement_audience_version_id": "a9eb3ab8-3178-477d-84d4-ef9d3978e48b",
"revision": 0,
"ab_test_name": ""
}
}
}The exact shape can change between SDK versions. Always use the file Adapty generated for your SDK version rather than hand-rolling one.
After the download
Add the file to your app code, then follow the platform-specific setup guide. The same APIs that load paywall fallbacks also load flow fallbacks once your app is on a flow-aware SDK release:
Limitations
Fallback flows are hard-coded and locally stored, so they don’t carry the full dynamic capabilities of live flows:
- One audience per placement. If a placement has several audiences, the fallback file only uses the All users audience.
- No live A/B tests. If the All users audience runs an A/B test, the file contains every variation of the test with its weight. The SDK splits users across these variations by weight. To update the fallback after you stop the test, download the file again and add it to a new app release.
- No Crossplacement A/B tests. The fallback file never includes a Crossplacement A/B test, even one that runs on the All users audience. For a placement in such a test, the file contains the regular All users content of the placement: its flow, or its regular A/B test.
- No remote updates. Updating the fallback requires a new app release. For runtime updates you’d otherwise make via remote config, push them through the live flow instead.