V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
abersheeran
V2EX  ›  PWA

关于 Edge 地址栏尾部显示添加 PWA 应用按钮的疑惑

  •  
  •   abersheeran · Dec 18, 2020 · 3277 views
    This topic created in 1966 days ago, the information mentioned may be changed or developed.

    看到 v 站的链接后面显示这个按钮,而我前几天闲着没事的时候写的 https://pixiv.app 不显示这个按钮,但是手动添加应用又是可行的。

    求解释

    5 replies    2020-12-19 06:14:25 +08:00
    Rhilip
        1
    Rhilip  
       Dec 18, 2020
    因为你没有在 html 头部中声明
    docs: https://developer.mozilla.org/en-US/docs/Web/Manifest
    Rhilip
        2
    Rhilip  
       Dec 18, 2020
    https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Installable_PWAs
    我觉得这个可能能帮上?之前那个没有认真看你的 html 头部。。。。
    reiji
        3
    reiji  
       Dec 18, 2020
    浏览器的 Dev tools 选择 Application,把上面提示的错误都解决了就可以安装了,主要目的还是提供离线使用和应用化体验
    abersheeran
        4
    abersheeran  
    OP
       Dec 18, 2020
    @Rhilip @reiji 感谢两位。
    yyfearth
        5
    yyfearth  
       Dec 19, 2020
    这个是 PWA 要声明一下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5480 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 09:19 · PVG 17:19 · LAX 02:19 · JFK 05:19
    ♥ Do have faith in what you're doing.