在 ios 上启动 Next.js PWA 时,我的启动画面没有出现

问题描述 投票:0回答:1

启动我的应用程序时,我的启动画面没有出现。
启动应用程序时我只看到白屏。

我尝试像这样更改 Next Metadata 对象,并多次重建 PWA 应用程序:

appleWebApp: {
    title: `Apple ${APP_DEFAULT_TITLE}`,
    capable: true,
    statusBarStyle: "black-translucent",
    startupImage: "/splash_screens/icon.png"
  }

这是我的manifest.json的开始:

"id": "/",
  "name": "Instamint",
  "theme_color": "#FFFFFF",
  "background_color": "#FFFFFF",
  "start_url": "/",
  "display": "standalone",
  "orientation": "portrait"
javascript ios next.js progressive-web-apps manifest
1个回答
0
投票

我发现修复了manifest.json中的所有警告(使用chrome lighthouse)也解决了闪屏不出现的问题。我在下一个元数据对象中保留了与之前相同的图像。

© www.soinside.com 2019 - 2024. All rights reserved.