gpt4 book ai didi

android - Android 的元标记 "apple-mobile-web-app-capable"?

转载 作者:IT老高 更新时间:2023-10-28 22:22:04 30 4
gpt4 key购买 nike

有没有办法像在 iPhone 上一样创建 Android Web 应用程序?

在 HTML 页面的 head 元素中使用“apple-mobile-web-app-capable”元标记,它通知 Apple iOS 该应用程序可以安装到用户跳板,以便启动 Safari Mobile 浏览器没有菜单栏。

最佳答案

Android 上的 Chrome 现在支持元标记 mobile-web-app-capable :

Since Chrome M31, you can set up your web app to have an application shortcut icon added to a device's homescreen, and have the app launch in full-screen "app mode" using Chrome for Android’s "Add to homescreen" menu item.

关于mobile-web-app-capable的详细信息元标记,向下滚动到“支持 M39 之前的主屏幕安装的应用程序”:

Since M31, Chrome will look for the following meta tag in the element of the web-page (if there's a manifest with display specified, this is ignored):

<meta name="mobile-web-app-capable" content="yes">

The name attribute MUST be "mobile-web-app-capable" and the content attribute must be "yes" (case in-sensitive). If there is any other value in the content attribute the web app will be added as a regular bookmark.

虽然我没有任何可以测试的运行 Chrome M31 的设备,但我认为这意味着设备主屏幕上带有图标的全屏网络应用程序早在 Chrome M31 时就受支持,前提是你用那个mobile-web-app-capable元标记。

关于android - Android 的元标记 "apple-mobile-web-app-capable"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4617073/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com