IOS 是否完全支持 Progressive Web Apps 还是我做错了什么?
Are Progressive Web Apps fully supported on IOS or am I doing something wrong?
我首先在 Windows/Chrome 上开发并在 Android/Chrome 上进行测试。据我所知,我的 PWA 也适用于 Mac/Chrome。但是我无法在 iPhone 和 iPad 上加载 IOS 11.2.5 中的清单文件或 Service Worker。
我在 iPad 上启用了远程调试以发现一些错误,但无济于事。但是,我确实注意到网络选项卡下没有加载任何文件。
根据 caniuse and that also seems to be the same for Service Workers,我发现清单文件可能仅在 IOS 13 中受支持,有人可以证实这一点吗?
tl;dr:IOS 是否支持 Service Worker 和清单文件?如果是,它们是否支持 < IOS 11.3?
iOS 设备尚未完全支持服务工作者。您的项目仍将按照正常网站运行,但没有服务工作者的额外好处。在 iOS 11.3 发布到 public 之前,我们仍然对 Service Worker 支持和不支持的内容一无所知。
从 ios 版本 12.2 beta 2 开始,苹果为 PWA 提供了更多支持,解决了以下问题。
网络分享
PWAs in the new iOS version are able to activate the native share
menu. So you are able to share links in the form of text, audio and
video files instantly and easily and forward them to e.g. your friends
in other apps.
PWA 不会再忘记了
PWAs under iOS 12.2 that you have placed on your home screen can keep
their current state in the background. For example, if you open a PWA,
exit it and call it up again a little later, it will show you exactly
where you left the app before. Before iOS 12.2 Beta 1 it was not
possible for PWAs to keep their state and had to be reloaded over and
over again.
PWA内可以调用链接
With iOS 12.2 you call up an external link and stay inside your PWA
and don’t “leave” the web app environment. This is due to the fact
that a so called in-app browser switches in between and offers you the
optimal PWA experience. Until now, a link has been opened in a new
Safari tab, which offers you the possibility to return to the PWA (via
Back button).
通过手势导航
If, for example, you have opened an area in your PWA and would like to
go back a step, you can now do so by wiping the display. This makes
sense if there is no Back button on the screen. So you can switch from
one page to the next within the PWA environment. This makes the
handling of PWAs under iOS 12.2 much more user-friendly compared to
before.
我首先在 Windows/Chrome 上开发并在 Android/Chrome 上进行测试。据我所知,我的 PWA 也适用于 Mac/Chrome。但是我无法在 iPhone 和 iPad 上加载 IOS 11.2.5 中的清单文件或 Service Worker。
我在 iPad 上启用了远程调试以发现一些错误,但无济于事。但是,我确实注意到网络选项卡下没有加载任何文件。
根据 caniuse and that also seems to be the same for Service Workers,我发现清单文件可能仅在 IOS 13 中受支持,有人可以证实这一点吗?
tl;dr:IOS 是否支持 Service Worker 和清单文件?如果是,它们是否支持 < IOS 11.3?
iOS 设备尚未完全支持服务工作者。您的项目仍将按照正常网站运行,但没有服务工作者的额外好处。在 iOS 11.3 发布到 public 之前,我们仍然对 Service Worker 支持和不支持的内容一无所知。
从 ios 版本 12.2 beta 2 开始,苹果为 PWA 提供了更多支持,解决了以下问题。
网络分享
PWAs in the new iOS version are able to activate the native share menu. So you are able to share links in the form of text, audio and video files instantly and easily and forward them to e.g. your friends in other apps.
PWA 不会再忘记了
PWAs under iOS 12.2 that you have placed on your home screen can keep their current state in the background. For example, if you open a PWA, exit it and call it up again a little later, it will show you exactly where you left the app before. Before iOS 12.2 Beta 1 it was not possible for PWAs to keep their state and had to be reloaded over and over again.
PWA内可以调用链接
With iOS 12.2 you call up an external link and stay inside your PWA and don’t “leave” the web app environment. This is due to the fact that a so called in-app browser switches in between and offers you the optimal PWA experience. Until now, a link has been opened in a new Safari tab, which offers you the possibility to return to the PWA (via Back button).
通过手势导航
If, for example, you have opened an area in your PWA and would like to go back a step, you can now do so by wiping the display. This makes sense if there is no Back button on the screen. So you can switch from one page to the next within the PWA environment. This makes the handling of PWAs under iOS 12.2 much more user-friendly compared to before.