sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Document Watchdog Termination for Extensions

Open philipphofmann opened this issue 1 year ago • 1 comments

Description

Investigate and document if watchdog terminations work correctly with extensions, which I highly doubt, in the SentryOptions and user-facing docs.

┆Issue is synchronized with this Jira Improvement by Unito

philipphofmann avatar Jun 07 '24 11:06 philipphofmann

I can confirm this issue is real. Tested with AutoFill extension.

  • After performing AutoFill the UI returns to the hosting app (e.g. Mobile Safari).
  • At that stage the extension is still running ok (confirmed by attaching debugger).
  • Terminating the hosting app also terminates the extension.
  • On relaunch of the extension a false positive watchdog termination is logged.

Looks like the extension does not receive a "background" notification when UI returns to the hosting app. Does the SDK support changing this status with some API call (so the extension can send this event)?

huven avatar Jun 04 '25 10:06 huven

Does the SDK support changing this status with some API call (so the extension can send this event)?

No, the SDK doesn't support this at the moment.

If you have the debugger attached, the watchdog termination logic shouldn't run actually, but it can happen that the SDK logs wrong watchdog termination events. Does the SDK also wrongly report watchdog termination events, when you don't have the debugger attached?

philipphofmann avatar Jun 06 '25 08:06 philipphofmann

Lots of them, this is in production 😄

I attached the debugger (after the UI switched back to the hosting app) just to verify that the extension is still running at that time.

huven avatar Jun 06 '25 09:06 huven