Reputation: 363
We have embedded web view using webkit in our app.
implementation 'androidx.browser:browser:1.3.0'
But when we install this app in different devices (mobile, android boxes, android tv's) the webview versions are showing different in different devices.
Is there any way to force the app use specific version of webview? We are facing some issues with older versions. So is there any way to maintain this version latest?
Please suggest possible ways to maintain the webview version fixed.
Upvotes: 2
Views: 2079
Reputation: 13406
One way of achieving this is to package a WebView implementation in your app. This increases the bundle, but it might be worth it if you want to support very old devices or if adjusting your web content to previous Chromium versions is hard.
As of now, there is only one available WebView package I know of: GeckoView by Mozilla. It's the engine that powers the FireFox browser. From my tests, it adds about 50-60 MB to your app's bundle size.
BTW, according to this thread, your users might be unable to use it without rooting their device.
Upvotes: 1