Offline mode lets your native iOS, native Android, React Native, Flutter, MAUI, and Compose Multiplatform applications keep showing guides and collecting analytics when a device has no connection to Pendo. While a device is online, the Pendo Mobile SDK saves the visitor's data and the guides that are set to show offline. If the device later loses its connection, the SDK keeps showing those guides, saves analytics on the device, and sends them to Pendo after the device reconnects.
For each guide, you choose whether it shows only when the device is online, only when it's offline, or in both online and offline. By default, the connectivity setting is set to show guides only when the device is online, not impacting the current behavior of existing guides.
Note: Offline mode is available on Pendo Mobile SDK version 3.15.0 or later. Xamarin apps aren't supported. It's off by default, so your developers must turn it on in PendoOptions. See instructions below.
Use cases
Offline mode fits applications that visitors use where the connection is limited or unreliable. For example, you can:
- Show an onboarding guide for a new workflow to a visitor who opens your application in an area with little or no signal.
- Show a message that only makes sense without a connection, such as "You're offline. Your changes will sync later."
- Show guides on devices that several visitors share, with display limits kept separately for each visitor.
- Keep analytics complete when devices spend time offline.
How it works
The first time a visitor uses your application, the application must be online. During that session, the SDK saves the visitor, your application's Pendo settings, and the guides marked for offline use, including their content. After that, the application can start Pendo with no connection.
What offline mode covers
- Guides. Guides marked for offline use are saved on the device and shown when there's no connection.
- Analytics. Page views, feature clicks, Track Events, and guide events are saved on the device and uploaded when Pendo can be reached again.
- Session Replay. If Session Replay is turned on for the visitor, recording continues offline and uploads later. See the Pendo help center for more details.
- Display limits. Each visitor's display limits apply offline. A guide set to show once doesn't show again after the visitor dismisses it, and the dismissal reaches Pendo with the saved analytics.
What happens during a session
-
Later launch, offline. The
setupandstartSessioncalls finish from the saved data with no network calls. Saved guides show where they're targeted. - Connection drops during a session. A guide that's already on screen continues. After that, only guides set to show offline can start.
-
Connection returns. The SDK uploads saved analytics automatically, oldest first. Guides set to Show only when offline stop showing. The saved guide list refreshes at the next online
startSession. - Next online launch. Saved analytics finish uploading before the SDK fetches guides, so Pendo knows which guides the visitor already saw or dismissed offline. The SDK then replaces the saved guides with the latest ones.
- Guide order. When several guides could show, the SDK uses the same order online and offline: app launch guides first, then guide priority. Guide schedules, throttling, and delayed display also apply offline.
How long saved guides last
A saved guide is kept for up to 5 days from the last time the device received it online. Each online session refreshes the guides it receives. A guide that hasn't been refreshed for 5 days won't show, and the SDK removes it at the next launch. A guide that's no longer published, or no longer targets the visitor, is removed after the next online session.
Several visitors on one device
The SDK keeps display counts and other visitor data separately for each visitor and account, so one visitor's dismissals never affect another's. Guide content and your app's Pendo settings are shared by everyone on the device. Each visitor needs their own online session before they can get offline guides.
Where saved data is stored
Saved data lives in your application's private storage on the device. It doesn't include your access token.
Before you begin
Offline mode is available when you have:
- Pendo Mobile SDK version 3.15.0 or later.
- Identified visitors. The
startSessioncall needs a Visitor ID. An Account ID is optional. Anonymous visitors don't get offline guides. - One online session first, on a build with offline mode turned on. The device must reach Pendo once before it can start offline.
- Guides set to show offline.
Turn on offline mode in your application
Set offlineMode on PendoOptions, and pass the options to setup. Call setup and startSession as you do today. Nothing else in your integration changes.
Important: Set offlineMode before setup. The SDK reads it once, when setup runs. Changing it later in the same launch has no effect. For installation details, see Developer's guide to installing the Pendo Mobile SDK.
Set guide connectivity preferences
The Connectivity setting controls whether a guide can show when the device is online, offline, or both.
- From the left-side menu, go to Guides > Guides, and open the mobile guide you want to change. Select Edit in my app.
- In the Visual Design Studio, select Activation in the action bar.
- In Activation settings, under Connectivity, select when the guide shows.
- Select Save.
The sentence under Connectivity confirms the current setting, and a badge shows the minimum SDK version.
| Connectivity setting | Shows online | Shows offline | Saved on the device |
| Show only when online (default) | Yes | No | No |
| Show only when offline | No | Yes | Yes |
| Show when online and offline | Yes | Yes | Yes |
Use Show only when offline for content that only makes sense without a connection. Use Show when online and offline for guides that need to reach visitors wherever they are. Devices receive a change at the start of their next online session.
Important: If your application hasn't turned on offlineMode in PendoOptions, guides set to Show only when offline aren't shown.
Test offline guides
Test offline behavior on a device with Airplane Mode. The Test button in the Visual Design Studio doesn't simulate an offline device. It shows the guide as if the device were online, regardless of its Connectivity setting.
- In Pendo, publish a guide set to Show only when offline that targets a screen in your application. Use text and buttons only.
- Run a build with
offlineModeset totrue. Start a session online with a Visitor ID, and open a few screens. - Close the application completely, and turn on Airplane Mode.
- Launch the application, and go to the targeted screen. The guide shows. With debug logging on, the console reads
No connection to Pendo - starting the session from disk. - Turn off Airplane Mode. Within a minute, the saved events upload and appear in Pendo with their original times.
Note: On the iOS simulator, test with the Mac's network turned off. Network Link Conditioner at 100% loss isn't the same as no connection, so results can differ.
View analytics from offline activity
The SDK saves analytics events on the device as they happen, online or offline. It deletes them only after Pendo confirms it received them, so closing the application before an upload doesn't lose events. Each event keeps the visitor and account it happened under, even if a different visitor starts a session before the upload.
Saved events upload oldest first and keep their original times in Pendo. Expect a delay between a visitor's activity and its appearance in Pendo. The length of the delay depends on when the device next connects. If a device stays offline long enough to reach the storage limit for saved events, the SDK drops the oldest events first.
Saving analytics doesn't depend on offline mode. Offline mode adds the ability to start a session with no connection:
| Situation | Offline mode off | Offline mode on |
| The session started online, then the connection drops | Saved, sent on reconnect | Saved, sent on reconnect |
| The application closes before the events are sent | Kept, sent at the next online launch | Kept, sent at the next online launch |
| The application launches with no connection | Not collected for the rest of that launch | Saved, sent on reconnect |
The startSession call runs with no connection |
Not collected until Pendo can be reached | Saved, sent on reconnect |
See guide activity by connectivity
For mobile guides, you can see whether guide activity happened online or offline:
- Guides list. Add the Connectivity column to see each mobile guide's connectivity setting.
- Guide Metrics. Use the Connectivity filter to show activity from all connectivity states, online only, or offline only.
- Guide Activity table. The Connectivity Status column shows whether a visitor's latest action happened online or offline. The Connectivity filter also matches earlier actions, so a visitor can appear when you filter by Offline while their status shows Online.
Connectivity only applies to mobile guides on apps running Pendo Mobile SDK 3.15.0 or later. An info badge next to the column, the filter, and the Connectivity Status column shows this.
Limitations
| Limitation | What happens |
| First use of a device | The first launch must be online. If it isn't, Pendo doesn't start until a launch reaches Pendo. |
| Images | A step that contains an image doesn't show offline. If the connection drops while an online guide is on screen, a later step with an image can end the guide. In the Visual Design Studio, a guide set to show offline shows a warning in the editor and a confirmation message when you save. |
| Videos, links, and web content | Anything that loads from the internet, such as embedded video, links, and remote images, doesn't load offline. Videos need a connection to play, so the video player doesn't appear. |
| New, updated, and retired guides | The saved guide list refreshes only at the next online startSession. A guide you publish while a device is offline doesn't reach it until then, and a guide you retire keeps showing its saved version until then. |
| Segments and visitor data | Pendo evaluates segments when a device is online. While the device is offline, the SDK uses the visitor and account data from the last online session. Changes to that data don't affect which guides show until the device reconnects and starts a new session. |
| Snooze | Not available for offline guides. |
| Anonymous visitors | No offline guides. Analytics are still saved and sent later. |
| Wi-Fi with a login page | On a hotel or airport network that hasn't been signed in, the SDK may try to reach Pendo instead of starting from saved data. Offline guides might not show for that launch. |
| Offline activity in analytics | Guide metrics show connectivity for mobile guides only. Other analytics reports, such as Data Explorer, funnels, and paths, don't show it yet. |
Troubleshoot guides that don't show offline
If a guide doesn't show on an offline device, check the following:
- The guide is set to Show only when online. This is the default. Change the setting under Connectivity, and select Save.
-
Offline mode is off. Set
offlineModetotruebeforesetup. While it's off, the SDK leaves out guides set to Show only when offline and logs a warning in the console that names each one:Guide "…" will not be displayed, since it is set to show only offline and offline mode is not enabled on the SDK. - The visitor hasn't had an online session. Start a session online on a build with offline mode turned on, using a Visitor ID.
- The saved guide expired or is no longer published. Connect the device and start a new session to refresh the saved guides.
- The SDK version is earlier than 3.15.0. Update the Pendo Mobile SDK in your application.
If the issue continues, contact Pendo Support with your SDK version, whether offline mode is on, and the console logs from a launch with debug logging turned on.