jellyfin / jellyfin-android

Android Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
1.46k stars 241 forks source link

Webview is too old, but I just installed ROM and GApps (2.3.0-beta1) #383

Closed Salamandar closed 3 years ago

Salamandar commented 3 years ago

The Webview version Jellyfin-Android requires is 88. My system only provides com.android.webview 83.

The "check for updates" button redirects to the Play store, but the store doesn't seem to find the app.

Also I tried installing the webview I could find on the Play store, it's com.google.android.webview 90, but it does not help the issue.

FYI, the rom is POSP and the gapps package is NikGApps. My android knowledge isn't great, IDK if the webview you're expecting is provided by the system, the default browser, or the gapps.

Maxr1998 commented 3 years ago

It seems that the system still uses the outdated webview. Check Developer Options → WebView Implementation in Android Settings.

CarlosOlivo commented 3 years ago

It seems that the system still uses the outdated webview. Check Developer Options → WebView Implementation in Android Settings.

Maybe add a shortcut to "WebView Implementation" activity in the dialog? See https://developer.android.com/reference/android/provider/Settings#ACTION_WEBVIEW_SETTINGS

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
        setNeutralButton("Change WebView Provider") { _, _ ->
            startActivity(Intent(Settings.ACTION_WEBVIEW_SETTINGS))
            requireActivity().finish()
        }
}

Also

On Android N-P, com.google.android.webview and com.android.chrome are mutually exclusive, due to “fallback logic.” Disabling (or enabling) Chrome will enable (or disable) the WebView stub. See Important notes for N-P for more information.

Maxr1998 commented 3 years ago

Good idea. That could be added to the dialog as well.

nielsvanvelzen commented 3 years ago

We might want to add an "ignore" button that allows the user to still use the app. We won't provide support for the web parts in that case but some alternative webview implementations won't work otherwise.

LivInTheLookingGlass commented 3 years ago

Please do. This app is otherwise unusable on my Fire tablet

Bandid0 commented 3 years ago

I have the same problem on my Huawei MediaPad M6 tablet

Salamandar commented 3 years ago

Yes, 88 is way too recent to be a requirement.

I changed the webview implem in the dev options but you can't expect the average user to do so.

nielsvanvelzen commented 3 years ago

I lowered the minimum version to chrome 80, which is the first release of 2020. I know jellyfin-web should work reasonably on it for webos/tizen although no guarantees on all functionality is given.

Salamandar commented 3 years ago

Thanks a lot @nielsvanvelzen , I think that will help a lot more support.

nielsvanvelzen commented 3 years ago

Second beta version is now released on the Play Store (F-Droid might take a while). This issue should be fixed, but if it's not please open a new issue.

Salamandar commented 3 years ago

@nielsvanvelzen The fix you provide isn't perfect as it doesn't allow the user to discard the warning message. It will still "break" older phones on which Jellyfin-Android worked fine before.

nielsvanvelzen commented 3 years ago

You can't discard the message about no webview available because the app doesn't work without one. The version check is discardable.

Salamandar commented 3 years ago

My bad, I thought you only reduced the required version.

Derkades commented 3 years ago

I'm getting this now on Android 12, does it also check for a maximum version? I have webview 91.

Maxr1998 commented 3 years ago

It doesn't, that sounds more like it uses a wrong WebView variant. Could you check your WebView implementation in the Android developer settings?

Derkades commented 3 years ago

Unfortunately not, other apps (like Pocket Casts) were giving webview errors as well so I reverted back to Android 11. Only now I see your comment..

static-void commented 2 years ago

Not sure if anyone is still watching this issue, but installing chrome fixed the "Webview outdated" message on my nexus 7 2012 (AOSP 7.1.2 with pico gapps). This would be a useful thing to add to the message as I didn't realise it was even related to chrome and went through reinstalling my entire ROM until I noticed the comment here from @CarlosOlivo. Previously I pressed "Ignore" and music would play but no video.

Offtopic but: I am blown away that I can play hevc video on this tablet from 2012 with Jellyfin+NVENC transcoding, and really minimal configuration. The Jellyfin app is so responsive it's like its a new tablet. I've got 5 of these tablets and have set them up all over the house for music and video, it's so awesome!

outusuke commented 1 year ago

It seems that the system still uses the outdated webview. Check Developer Options → WebView Implementation in Android Settings.

my tv box there is no such option, and I get stuck on the home screen after configuring the host ip, android 6.0 com.android.webview v44

nielsvanvelzen commented 1 year ago

We have a separate app for televisions.