简体   繁体   English

WebClip可以指向非基于Web的内容吗?

[英]Can WebClip point to anything not web based?

As I understand WebClip was created to point to a web app. 据我了解,WebClip的创建是指向Web应用程序的。

However, on other hand, all it does internally is just let the system know that URL should be opened (and as example Safari handles that). 但是,另一方面,它在内部所做的只是让系统知道应打开URL(例如Safari处理该URL)。

My question is whether WebClip can contain any other non http:// url's (as example protocols for mail, sms or any other registered protocol)? 我的问题是WebClip是否可以包含任何其他非http:// URL(例如,邮件,短信或其他任何已注册协议的示例协议)?

Yes and no... 是不是

Web Clip is for web content. Web Clip用于Web内容。 You have to be viewing a web page (or web app) in MobileSafari to be able to save a Web Clip to the home screen -- URLs which can't be viewed in Safari (mail, sms, etc.) thus can't be saved to the home screen. 您必须在MobileSafari中查看网页(或Web应用程序)才能将Web Clip保存到主屏幕-无法在Safari中查看的URL(邮件,短信等)因此无法保存到主屏幕。

This doesn't mean you're stuck with HTML, though: Safari can view PDFs, Office and iWork documents, images and all sorts of other junk, and "Add to Home Screen" still works when viewing one of those. 但是,这并不意味着您会陷入HTML:Safari可以查看PDF,Office和iWork文档,图像以及各种其他垃圾,并且在查看其中一个时,“添加到主屏幕”仍然有效。 (Not that it's particularly useful...) (并不是说它特别有用...)

Also, your web content doesnt' have to be web based: if you encode your web page in a data: URL, saving that to the home screen will give you a "web app" that's stored locally. 同样,您的Web内容也不必基于Web:如果将网页编码为data: URL,则将其保存到主屏幕将为您提供本地存储的“ Web应用程序”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM