Document Watchdog Termination for Extensions
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
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)?
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?
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.