getsentry / sentry-unity

Development of Sentry SDK for Unity
https://docs.sentry.io/platforms/unity/
MIT License
217 stars 52 forks source link

WebGL: ANR and Application pause #1268

Open bitsandfoxes opened 1 year ago

bitsandfoxes commented 1 year ago

For sessions, we're already tracking the focus of the app. Especially for WebGL (being single-threaded) would benefit significantly from pausing the ANR detection when focus is lost/application is paused.

bitsandfoxes commented 7 months ago

We made some changes to the ANR detection https://github.com/getsentry/sentry-unity/pull/1484 We need to check how that affects WebGL builds and if this is still applicable. Can we detect tab switches and pause the session thought that?