在适用于 iOS 的 Chrome 上创建 iOS 主屏幕快捷方式

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11280851/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 19:04:14  来源:igfitidea点击:

Create iOS Home Screen Shortcuts on Chrome for iOS

iosgoogle-chromesafari

提问by Dmitry Makovetskiyd

I have a web app that allows the user to add the web page to his home screen on the iphone.

我有一个网络应用程序,允许用户将网页添加到他在 iPhone 上的主屏幕。

That functionality exists with Safari.

该功能存在于 Safari 中。

Now they released the chrome browser for the iphone too. My question is how can I instruct the user to add the web page to his ios home screen. The chrome browser doesnt seem to have that functionality..? Can I add a shortcut from chrome options so that it would appear on the iphone home page?

现在他们也发布了 iPhone 的 chrome 浏览器。我的问题是如何指示用户将网页添加到他的 ios 主屏幕。chrome 浏览器好像没有那个功能..?我可以从 chrome 选项添加快捷方式,以便它出现在 iphone 主页上吗?

回答by Mars Robertson

For completeness:

为了完整性:

https://developer.chrome.com/multidevice/android/installtohomescreen

https://developer.chrome.com/multidevice/android/installtohomescreen

Does Add to homescreen work on Chrome for iOS?

No.

添加到主屏幕是否适用于 iOS 版 Chrome?

不。

回答by Erin

Can't change the default browser, but try this (found online a while ago). Add a bookmark in Safari called "Open in Chrome" with the following.

无法更改默认浏览器,但试试这个(不久前在网上找到的)。在 Safari 中添加一个名为“在 Chrome 中打开”的书签,如下所示。

javascript:location.href=%22googlechrome%22+location.href.substring(4);

Will open the current page in Chrome. Not as convenient, but maybe someone will find it useful.

将在 Chrome 中打开当前页面。不太方便,但也许有人会发现它很有用。

Source

来源

Works for me.

为我工作。

回答by smorgan

The is no API for adding a shortcut to the home screen in iOS, so no third-party browser is capable of providing that functionality.

iOS 中没有用于向主屏幕添加快捷方式的 API,因此没有第三方浏览器能够提供该功能。