pwa

PWA iOS Splash does not display despite following instructions

我怕爱的太早我们不能终老 提交于 2019-12-13 12:27:18
问题 I am making a PWA and I am trying to display splash screen. I was following this tutorial: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html Confirmed with this: https://www.netguru.co/codestories/few-tips-that-will-make-your-pwa-on-ios-feel-like-native and my code in my index.html is like this: <meta name="apple-mobile-web-app-capable" content="yes"> <link rel="apple-touch-startup

Service Worker w offline.html Backup Page

冷暖自知 提交于 2019-12-11 14:39:14
问题 I can't get the offline.html page to display. I keep getting the The FetchEvent for "https://my-domain.com" resulted in a network error response: a redirected response was used for a request whose redirect mode is not "follow" . Here's the snippet of my service-worker.js which should return the offline.html when the network is unavailable. self.addEventListener('fetch', function(event) { if (event.request.mode === 'navigate' || (event.request.method === 'GET' && event.request.headers.get(

Progressive web app(PWA) vs Electron vs Browser extension

时光毁灭记忆、已成空白 提交于 2019-12-10 03:50:08
问题 The background for this question is that I've been working on what I'd call a tool in which a user can build modules that they can later run. It started out as a small web page and has grown over the last year into something that more closely resembles a desktop application; but, at this point, is still just a set of html, css, and js files. I considered using something like electron to package it as an installable desktop application, but I didn't like that approach and thought it better to

Is IndexedDB on Safari guaranteed to be persistent?

这一生的挚爱 提交于 2019-12-07 14:32:39
问题 Similar to this question, is IndexedDB guaranteed to be persistent ? ie. Safari will not reclaim disk space if the device is low on memory. 回答1: Safari have "No Eviction policy", meaning it will not automatically clean the IndexDB on low disk pressure, without user doing it manually. IndexDB is one of the fast evolving feature and you can expect to have a different eviction policy any time with no announcement. You should always build with fall back options. Chrome has explicit persistent

Multiple PWAs in the same domain

旧城冷巷雨未停 提交于 2019-12-06 07:50:54
Is it possible to host multiple PWAs under same endpoint. Say, I have three different PWAs Under root and then root should host these 3 PWAs in such a way that when I switch to any other apps via link or menu it shouldn't open in different window. Currently, it is getting opened in different window as web app whenever, I am clicking on different app. Thanks, Rahul You may refer with this thread . It stated that you can accomplish this with scoped apps. Update your manifest files to include a scope parameter with a value of the path that "app" should be served under. "scope": "/r/aizumap/", and

Is IndexedDB on Safari guaranteed to be persistent?

孤人 提交于 2019-12-06 02:19:47
Similar to this question , is IndexedDB guaranteed to be persistent ? ie. Safari will not reclaim disk space if the device is low on memory. Safari have " No Eviction policy ", meaning it will not automatically clean the IndexDB on low disk pressure, without user doing it manually. IndexDB is one of the fast evolving feature and you can expect to have a different eviction policy any time with no announcement. You should always build with fall back options. Chrome has explicit persistent storage option which will guarantee no eviction, on user approval for persistent storage and we can expect

How To Log Whether PWA Is Being Viewed As A Website Or App

那年仲夏 提交于 2019-12-05 08:02:19
I'm working on a PWA (progressive web app) and I would like to be able to track whether someone is just viewing it as a website or if they installed it and are viewing it as an app. Is there any way to do this? I can't think of any ways, since they both use the same files (both use manifest.json and manifest.json directs both to the same index.html). Windows 10 gives the ability for PWAs to be installed from their app store. At that point, you might be able to gather some analytics. Unfortunately, that would be a limited install-base (compared to just installing it from the browser). Option 1

Open file with system application in a Progressive Web App

最后都变了- 提交于 2019-12-05 05:29:18
I'm trying to figure out if it is possible to open a file from a Progressive Web App with the default system application. The idea is that a PWA would store for offline use some files (e.g. a .docx file), and that the user would be able to open them without (re)downloading them. The ideal situation would be that the PWA is able to load into memory the file, make it accessible to the default system application for that file type (e.g. Word for .docx files), watch for changes (i.e. the user saves edits), and then store it back into the PWA storage. Even a read-only solution would be great. Since

Progressive web app(PWA) vs Electron vs Browser extension

泪湿孤枕 提交于 2019-12-05 04:23:51
The background for this question is that I've been working on what I'd call a tool in which a user can build modules that they can later run. It started out as a small web page and has grown over the last year into something that more closely resembles a desktop application; but, at this point, is still just a set of html, css, and js files. I considered using something like electron to package it as an installable desktop application, but I didn't like that approach and thought it better to stick to something like a progressive web app because everything is done off-line. Because I wanted to

Angular 6 PWA with Node not working

♀尐吖头ヾ 提交于 2019-12-02 11:15:57
问题 I have a Angular 6 app that works and registers the SW when served with http-server --port 8080 command as you can see here: But when I serve the files from my Node / Express application that they are meant to be served. The service worker won't register, tried running the app from localhost and also from Heroku but it's the same. Application works otherwise. Any idea what can cause this? 回答1: I think this issue is to do with the path that @angular/cli uses when registering the service worker