bugsnag / bugsnag-unity

Automatic error reporting for Unity games
https://docs.bugsnag.com/platforms/unity
MIT License
89 stars 31 forks source link

only init time api when required to prevent app hangs on iOS #783

Closed richardelms closed 4 months ago

richardelms commented 4 months ago

Goal

C# Time api can cause app hangs on ios if during app startup. This PR moves initialisation of time api usage to when it is first actually used. This should greatly reduce the risk of app hangs.

bugsnagbot commented 4 months ago

Build size impact

Format Size impact of Bugsnag (kB)
IL2CPP APK 2348.56
IL2CPP IPA 1349.22

Generated by :no_entry_sign: Danger