Replies: 1 comment
-
|
I found out that a component additionalLinkTags={[
{
rel: "icon",
href: "/favicon.ico",
},
{
rel: "apple-touch-icon",
href: "/icon.png",
sizes: "76x76",
},
{
rel: "manifest",
href: "/manifest.json",
},
]}in app.js and I got to define it in <Head>
<meta
name="application-name"
content="Instalacje Hydrauliczne Krzysztof Niedbalec"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="default"
/>
<meta
name="apple-mobile-web-app-title"
content="Instalacje Hydrauliczne Krzysztof Niedbalec"
/>
<meta
name="description"
content="Instalacje gazowe, centralne ogrzewanie, ogrzewanie podłogowe, instalacje hydrauliczne - Hydraulik - Dębica i okolice (Podkarpacie)"
/>
<meta name="format-detection" content="telephone=no" />
<meta name="mobile-web-app-capable" content="yes" />
<link rel="manifest" href="/manifest.json" />
<link rel="apple-touch-icon" href="/icon.png" />
<link rel="shortcut-icon" href="/favicon.ico" />
</Head>and it now works! Nevertheless I still got a problem with: offline-fallback-v2 don't routing to _offline.js page when offline
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, in production when I go to dev tools in chrome and then to console I got an error
Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope ('https://plumber-app-chakraui.vercel.app/') with script ('https://plumber-app-chakraui.vercel.app/sw.js'): A bad HTTP response code (404) was received when fetching the script.What is the problem? I even declared in next.config. js
sw: "sw.js",but it is default value and it hasn't helped.my next.config.js
but in development (npm run dev) I got the icon to download as an app:

edit1: on mobile phone in production it works, but in browsers in production it doesn't (i tried chrome and firefox)
Beta Was this translation helpful? Give feedback.
All reactions