bugsnag / bugsnag-unity-performance

Monitor the start-up, scene loading and network requests of your Unity game and see the results in your BugSnag dashboard.
https://docs.bugsnag.com/performance/integration-guides/unity
MIT License
1 stars 2 forks source link

PLAT-12235 fix for connection type check on main thread #117

Closed richardelms closed 4 months ago

richardelms commented 4 months ago

Goal

Calling Application.internetReachability from a background thread is not allowed and throws an exception.

NOTE: This bug was not caught by our E2E testing because IL2CPP strips out the thread safety check in release builds.

Changeset

Changed to a polling method that checks the connection status once a second.

Testing

Covered by existing E2E tests

bugsnagbot commented 4 months ago

Build size impact

Format Size impact of Bugsnag (kB)
IL2CPP APK 4.1
IL2CPP IPA 2.26

Generated by :no_entry_sign: Danger