Skip to content

Offer a Suspending API for EncryptedLogging.enqueueSendingEncryptedLogs(...) #29

@ParaskP7

Description

@ParaskP7

This came as an idea after working on WCAndroid#14711, where we identified a limitation of using appCoroutineScope.launch { ... } with encryptedLogging.enqueueSendingEncryptedLogs(...) for FATAL errors.

For more info see (Internal discussion): p1759832867149029-slack-CGPNUU63E


FYI: Another idea to address this issue, from a different angle, could be:

  • In case of FATAL error, store an "intent" of sending logs in the future.
  • On the next app resume, check the "intent" and collect logs then (because they’re stored now on the disk).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions