progressive-web-apps

start_url does not respond with a 200 when offline: The start_url did respond, but not via a service worker. Lighthouse Audit problem

我的未来我决定 提交于 2021-01-27 15:29:57
问题 I am creating a PWA that works offline with a service worker. Right now it works correctly, but there is a problem in Lighthouse Audit. When I run Lighthouse, in the PWA section I get this problem: start_url does not respond with a 200 when offline The start_url did respond, but not via a service worker. How do I pass that audit, even if there are other audits that say that I have successfully installed a service worker? My website is here: https://nariohtools.com and the service worker is

How should I handle the pushsubscriptionchange event?

房东的猫 提交于 2021-01-27 12:07:50
问题 According to the spec, a pushsubscriptionchange event indicates that "a push subscription has been invalidated, or will soon be invalidated." What are the best practices for handling this event? 回答1: Process the re-subscription entirely within the service worker. There may be no client (i.e. open pages) associated with the service worker at the point the event is fired--do not use postMessage() to trigger a re-subscription from the client. Implementations are likely to honour the old

How to fix the console warning “The resource … was preloaded using link preload but not used within a few seconds from the window's load event”?

痴心易碎 提交于 2021-01-21 10:43:52
问题 I'm developing a gatsby theme/starter for PWA's, but I can't seem to get rid of the following console warning: The resource https://davidde.github.io/gatsby-starter-simpwa/page-data/offline-plugin-app-shell-fallback/page-data.json was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. On first load everything works fine; the service worker registers like it should and

How to fix the console warning “The resource … was preloaded using link preload but not used within a few seconds from the window's load event”?

喜你入骨 提交于 2021-01-21 10:43:29
问题 I'm developing a gatsby theme/starter for PWA's, but I can't seem to get rid of the following console warning: The resource https://davidde.github.io/gatsby-starter-simpwa/page-data/offline-plugin-app-shell-fallback/page-data.json was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. On first load everything works fine; the service worker registers like it should and

How to fix the console warning “The resource … was preloaded using link preload but not used within a few seconds from the window's load event”?

笑着哭i 提交于 2021-01-21 10:43:11
问题 I'm developing a gatsby theme/starter for PWA's, but I can't seem to get rid of the following console warning: The resource https://davidde.github.io/gatsby-starter-simpwa/page-data/offline-plugin-app-shell-fallback/page-data.json was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. On first load everything works fine; the service worker registers like it should and

How to fix the console warning “The resource … was preloaded using link preload but not used within a few seconds from the window's load event”?

99封情书 提交于 2021-01-21 10:40:08
问题 I'm developing a gatsby theme/starter for PWA's, but I can't seem to get rid of the following console warning: The resource https://davidde.github.io/gatsby-starter-simpwa/page-data/offline-plugin-app-shell-fallback/page-data.json was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. On first load everything works fine; the service worker registers like it should and

Sending Push Notifications to iOS from PWA

纵然是瞬间 提交于 2021-01-21 04:11:48
问题 I'm sorry, I know this question has been asked before but I couldn't find updated answer. I've got a Progressive Web App which made with Blazor WebAssembly and I was wondering if I can send push notifications to iOS devices? Although people said if works now on Safari on MacOS, Push API's website says that it does not support Safari on iOS. Do I need to wrap every web app if I target iOS? I don't have a MacBook, do I need to buy one just to achieve this? Also there are Firebase and Azure

Sending Push Notifications to iOS from PWA

可紊 提交于 2021-01-21 04:11:16
问题 I'm sorry, I know this question has been asked before but I couldn't find updated answer. I've got a Progressive Web App which made with Blazor WebAssembly and I was wondering if I can send push notifications to iOS devices? Although people said if works now on Safari on MacOS, Push API's website says that it does not support Safari on iOS. Do I need to wrap every web app if I target iOS? I don't have a MacBook, do I need to buy one just to achieve this? Also there are Firebase and Azure

Sending Push Notifications to iOS from PWA

Deadly 提交于 2021-01-21 04:09:49
问题 I'm sorry, I know this question has been asked before but I couldn't find updated answer. I've got a Progressive Web App which made with Blazor WebAssembly and I was wondering if I can send push notifications to iOS devices? Although people said if works now on Safari on MacOS, Push API's website says that it does not support Safari on iOS. Do I need to wrap every web app if I target iOS? I don't have a MacBook, do I need to buy one just to achieve this? Also there are Firebase and Azure

Sending Push Notifications to iOS from PWA

六眼飞鱼酱① 提交于 2021-01-21 04:09:07
问题 I'm sorry, I know this question has been asked before but I couldn't find updated answer. I've got a Progressive Web App which made with Blazor WebAssembly and I was wondering if I can send push notifications to iOS devices? Although people said if works now on Safari on MacOS, Push API's website says that it does not support Safari on iOS. Do I need to wrap every web app if I target iOS? I don't have a MacBook, do I need to buy one just to achieve this? Also there are Firebase and Azure