chrome webview 中的 Service Worker 支持 [英] Service Worker support in chrome webview

查看:49
本文介绍了chrome webview 中的 Service Worker 支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

android 的 chrome webview 是否支持 Service Worker,如果是,那么它支持哪个版本.尝试谷歌搜索,但没有找到正确的信息.

Is Service Worker supported in chrome webview for android, if yes then from which version is it supported. Tried googling, but didn't find proper information.

推荐答案

根据 本公告,自 2015 年 3 月(Android WebView v40+)起,Chrome WebViews 已支持 Service Worker.运行 Android OS 5.0 及更高版本的设备应该拥有它.

As per this announcement, service workers have been supported in Chrome WebViews since March of 2015 (Android WebView v40+). Devices running Android OS 5.0 and higher should have it.

由于 WebViews 有自己的沙盒环境,由 Service Worker 缓存的数据不会暴露给普通的 Chrome 应用程序,反之亦然.如果您使用的是 Chrome 自定义标签,缓存数据将与普通 Chrome 应用程序共享.

Since WebViews have their own sandboxed environment, the data cached by a service worker there won't be exposed to the normal Chrome application, and vice versa. If you were using Chrome Custom Tabs, the cached data would be shared with the normal Chrome application.

这篇关于chrome webview 中的 Service Worker 支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆