Massive AndroidWebView causing crashes

Recently I got a huge number of crashes caused by AndroidWebView. My game downloaded over 5M from Google Play Store, and never rated under 4.2 / 5.0 scores. But after this massive crash, it went down to 3.8 5.0 points and is still going down.

It’s mostly happened in Android 12. I searched about this issue and found the same issues in the last year. All they say is that uninstalling Android System WebView works. WTF?

Does Unity still haven’t fixed it, or is it a different issue? It’s having a massive negative impact on my income. Please let me know how to solve it. It needs to be fixed urgently.

Using Unity 2019.4.31f.

Wondering how it’s linked to Unity. What plugin are you using for webview on Android?

I never used webview in my game. I attached the screenshot of the list of all packages installed. At least, I never added and used it webview at all myself.

8255349--1080507--p.png

I’m not sure Unity has android webview built in so confused by the title of the text that you have it in your build.
Share me the app link to give a try on my device.

Even though I never added and used WebView at all, that can’t be said that there’s no webview existed in this game. In the past year, lots of games made by Unity faced the same instant crash issue on start, and some of them even not used webview at all. This is just a guess, but probably some of Unity’s built-in or additional packages like Unity IAP or Unity Ads use the webview internally and cause this trouble.

The reason that I can say with confidence that the webview obviously wrecked up my game is that all the users having this issue are solved when they removed Android System WebView, just like the last year’s similar issue. I found some posts that some of the games still present this issue or happened just a few months ago.

And it’s a piece of cake that find related posts that Unity Ads uses webview internally, and already reported some crash reports:
https://www.google.com/search?q=unity+ads+webview+crash&newwindow=1&sxsrf=ALiCzsaGF_K-DbgaWMdPzr455fXQ0DKuKg:1657036778945&ei=6l_EYuWqOdnM-Qaz5ZVQ&ved=0ahUKEwjlx9qEj-L4AhVZZt4KHbNyBQoQ4dUDCA4&uact=5&oq=unity+ads+webview+crash&gs_lcp=Cgdnd3Mtd2l6EAM6BwgAEEcQsANKBAhBGABKBAhGGABQvgdYtglgngpoBHABeACAAWuIAZYDkgEDMS4zmAEAoAEByAECwAEB&sclient=gws-wiz

This is why I’ve never used or never put it the webview, (even though I don’t know how to use it), but I’m saying that the webview crashes my game.

This issue is not happening to all Android versions. I already attached an image in the first and it shows it mostly happens in Android 12.

I can’t say it is also reproduced in your device, but if you wanna check, here’s the link:
https://play.google.com/store/apps/details?id=me.modernator.stickWarfareBloodStrike

Makes sense now. Possibility that ads has a webview, most likely.

Did you ever find a resolution for this?

Nope. Even Unity has no answer.

Ok thanks. I’m getting hammered with these crashes right now as well.

Any chance you are using either Playfab, IronSource, or Firebase? Maybe we can find a common point of failure.

I’m battling some other crashes, but I did have quite a few Android 12 crashes for a moment (I was on 2021.3.4, and went to 2021.3.5) and that resolved - most - of the android 12 crashes.

But upgrading to 2021.3.4 originally was the worst thing I ever did. I cannot stop the crashes I am experiencing.

That’s why I’m still using 2019. Every time I raise the Unity version always causes massive trouble.

Have you solved that problem yet?

Nope.