Events

Events triggered from CustomFit.ai SDK are cached and syncs them with servers in batches.

The SDK caches every event in the storage before syncing and maintains a maximum of 50 events offline at any point in time.

On Android and iOS

Batch sync is triggered in one of the following scenarios:

  1. When an event is fired by the application and the last sync completed at least 3 hours ago.

  2. When an analytics event is fired by the application and there are 50 events accumulated to be synced.

  3. When the SDK is initialized during the app launch.

  4. When the app is sent to the background.

  5. When the app is brought from background to foreground and the last sync completed at least 3 hours ago.

  6. When the app is brought from background to foreground and then there are already 50 events accumulated to be synced.