Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Telemetry events are dropped when network is disconnected #481

Open

Description

@kmadsen

EDIT: I removed the bug label. This is potentially a feature, considering it hasn't been implemented?

Configuration

  • SDK Version All
  • Android OS Version All
  • Device model(s): All
  • App: All

Steps to Reproduce

  1. launch app with telemetry
  2. put device in airplane mode
  3. events are dropped

Expected
Don't drop network is disconnected

Logging
Looks like the queue is flushed here, which removes all the events

private synchronized void flushEnqueuedEvents() {
final List<Event> currentEvents = queue.flush();
if (currentEvents.isEmpty()) {
return;
}
executeRunnable(new Runnable() {
@Override
public void run() {
try {
sendEvents(currentEvents, false);
} catch (Throwable throwable) {
// TODO: log silent crash
Log.e(LOG_TAG, throwable.toString());
}
}
});
}

When the connection is unavailable, these events are dropped

private synchronized void sendEvents(List<Event> events, boolean serializeNulls) {
if (isNetworkConnected() && checkRequiredParameters(sAccessToken.get(), userAgent)) {
telemetryClient.sendEvents(events, httpCallback, serializeNulls);
}
}

Activity

  1. added and removed on Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions