Skip to content

Sending data stuck for 10s when pebble app closes #12

@jamsinclair

Description

@jamsinclair

Problem

Android app gets stuck sending data on closing and re-opening of pebble watch app. Usually around ~10 seconds, assuming this is a timeout?

Not sure if this a libpebble3/mobile app issue or on the PebbleKit side.

Would making the coroutine in AidlCoroutines.kt#L18 cancellable with suspendCancellableCoroutine offer a solution at all on the library side? (I am not super familiar with Kotlin, might be barking up the wrong tree).

Reproduction

  1. [Android Device] send a large payload to the pebble watch (1KB+)
  2. [Pebble App] Exit the watch app while payload is being transferred
  3. [Pebble App] Re-launch watch app and trigger request for more data
  4. [Android Device] Observe that sendDataToPebble gets in a stuck state and no subsequent messages can be sent for 10 seconds or so

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