这是我无法正常工作的一些演示链接,因此Q& a下:
https:// https:// https://protler.glitch.me/
如果安装了PWA,我正在尝试从浏览器链接打开PWA。我阅读了有关“ stoloptim_handler”和安装所需URLSCHEME的两种方法。
即使用JavaScript或清单文件。
在上面的这些演示链接中,urlscheme包含一个前缀“ web+”,这是PWA的必要条件,还是我只能拥有一个urlscheme,例如“ appName:// forther”,而不是“ web+appname://”?
以下哪种可以安装URL协议的方法是首选方法,或者我什么时候使用其中任何一种方法?
更新:
我阅读了有关清单文件以及PWA的start_url和范围的更多信息。
在我当前的清单文件中,我有默认值:
start_url:index.html;
和
范围: '/';
但是现在我已经读到,可以将值设置为以下内容:
start_url:'https://thedesireddomane.com/index.html'
和
范围:'https://thedesireddomane.com/'
,如果我使用域名,那么当单击链接并包含域名的任何部分时,PWA将打开?这是真的吗?还是我需要url_protocol?为什么?
它是一个非常有限的主题,可用的信息根本不是确定的。
here are some demo links i could not get working, therefore the Q & A below:
https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/URLProtocolHandler/explainer.md
https://protocol-handler.glitch.me/
I'm trying to open the PWA from a browser link, if the PWA is installed. I read about the "protocol_handler" and the two methods of installing the desired urlscheme.
Namely using JavaScript or the manifest file.
In these demo links above, the urlscheme contains a prefix "web+" is this a must for a pwa or can i just have a urlscheme like "appname://" instead of "web+appname://" ?
which of these methods to install the url protocol is the preferred method or when will i use either of them?
UPDATE:
I read some more information regarding the manifest file and the start_url and scope of the PWA.
In my current manifest file i have the default values:
start_url : index.html;
and
scope: '/';
But now i have read that one can set the values to the following:
start_url: 'https://thedesireddomane.com/index.html'
and
scope: 'https://thedesireddomane.com/'
and if i use the domain names, then when ever a link is clicked and contains any part of the domain name, the PWA will open? Is this true? or do i need the url_protocol? and why?
Its a very limited topic and the information available is not definitive at all.
发布评论