The Pendo mobile SDK operates in a dynamic environment. Many times, end-users don't have network connectivity when the app launches or the app might lose the network connection in the middle of a 'session'.
To ensure intact delivery of usage analytics regardless of the network condition, the SDK continues to collect analytics regardless of the connectivity status:
- If a network connection is available, the SDK sends the usage analytics data in bulk to avoid load issues on the mobile device's network.
- If the network connection is unavailable, the SDK keeps collecting analytics and saves them on the device. To make sure that the app doesn't consume too much space, there's a default limit of 10MB for these saved analytics. This space is used as first-in-first-out if the entire space is used.
- The 10MB of space on the device can be adjusted for each app by a support ticket. Use this for apps that are supposed to be offline for longer time periods. If you require a different storage size for a specific app, contact our Pendo Support for help.
After the Internet connection is restored, the SDK is notified and sends all saved analytics to the Pendo server.
Note: Without offline mode, the Pendo SDK doesn't collect analytics or show guides until setup() and startSession() succeed. If the device has no connection when the app starts, the SDK keeps retrying but doesn't capture analytics until it reaches Pendo. With offline mode in Pendo Mobile SDK 3.15.0 or later, the SDK can start from saved data with no connection. See Show mobile guides when a device is offline.
Show guides offline
By default, guides show only if the device had a connection when startSession() was called. Guides already downloaded keep showing until the next session starts.
With offline mode, available in Pendo Mobile SDK 3.15.0 or later, guides you set to show offline are saved on the device and shown when there's no connection. For setup and limitations, see Show mobile guides when a device is offline.