Solved

Heap data if no Internet

  • 31 October 2022
  • 1 reply
  • 50 views

Badge

How does Heap store user interactions in mobile app if the user does not have internet at that time?

Are these events not saved?

Or are saved and pushed to the cloud if the Internet is resumed?

icon

Best answer by jack-schneider 2 November 2022, 22:46

View original

1 reply

Userlevel 2
Badge +1

Hi Kristjan,

Heap will store events captured from user interactions on the user’s device until the device is reconnected to the internet, at which point they are then sent to Heap. More details from our docs on this behavior:

iOS:

Events are cached locally if no network connection is present. We also cache the first 200 request batches, each of which can have one or multiple events.

Android:

If no network connection is present, events are cached locally. Data will not be sent when the app is not being used. All data are sent to heapanalytics.com. Each interaction with your app will generate an event to be sent to Heap. A typical event on Android is around 0.5 KB. 

Reply