In this post, we will see how to resolve Unity, Android: a lot of crashes in an app with WebView
Question:
We are developing an app with Unity with an extensive use of WebView. To be more specific we use the UniWebView asset from @onevcat. We suffer a lot of crashes on Android (~5% of all users). Below are the distribution of Android versions and some stacktraces from Google Play console.Tried Unity versions: 2020.3.18, 2020.3.34, 2020.3.41.
Tried these UniWebView versions: 4.10.3, 4.12.1, 5.0.2.
Thanks for any help!

1:
Best Answer:
Well, it’s really peculiar, but we were fiddling with settings, and disabling “Optimized Frame Pacing” seems to have helped:
Actually, we stumbled upon this, because
swappy::ChoreographerFilter::threadMain(bool, int)
was present in some reports but not in the thread that crashed.
If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com
Leave a Review