progressive-web-apps

Remove name in PWA splash screen

混江龙づ霸主 提交于 2019-12-07 06:14:03
问题 how can I remove the name in the splash screen of my progressive web app? The app name is already in the logo / icon. That's why I don't want to see the name in the bottom of the splash screen again. example manifest.json: { "name": "HackerWeb", "short_name": "HackerWeb", "start_url": ".", "display": "standalone", "background_color": "#fff", "description": "A simply readable Hacker News app.", "icons": [{ "src": "images/touch/homescreen48.png", "sizes": "48x48", "type": "image/png" }, { "src"

NullInjectorError: No provider for SwUpdate! SwUpdate does not work Angular 5

强颜欢笑 提交于 2019-12-07 05:34:15
问题 Now I know there are a million posts about No Provider for such and such service, I know it needs to go in the providers please read my entire post. Basically I am trying to use SwUpdate to check to see if there is an update if so, refresh the browser: import { SwUpdate } from '@angular/service-worker'; ... export class ... constructor( private _swUp: SwUpdate ){} ngOnInit() { this.checkForUpdate(); } checkForUpdate() { if (this._swUp.isEnabled) { this._swUp.available .subscribe(() => {

Is it possible to use the new Push Notifications support in Chrome without GCM?

帅比萌擦擦* 提交于 2019-12-07 05:33:20
问题 Can I use a push service other than Google's GCM when using the new Push API with service workers? 回答1: Today, Chrome is the only browser that supports the standard push API so right now the short answer is No. A longer answer involves doing different things for different browsers Safari offers desktop notifications via APNS and a proprietary API Firefox is shipping support for push notifications soon and presumably will use a different push server than GCM. So to summarize, it seems that

IOS 12 PWA support

江枫思渺然 提交于 2019-12-07 05:30:21
问题 It is said that IOS 11.4 will support the PWA, but it doesn't. Question: Today IOS 12 released, does Apple support PWA in the 12th version of IOS? (Like add to home screen) 回答1: PWAs are a complex collection of features and functionalities. Apple added an initial support for some PWA characteristics in iOS 11.3 in march 2018. You can read a really good explanation here, with their significant limitations: Progressive Web Apps on iOS are here https://medium.com/@firt/progressive-web-apps-on

progressive web app site cannot be installed: no icon available to display

二次信任 提交于 2019-12-07 05:09:42
问题 I'm building a progressive web app. I started off with boilerplate from create-react-app. Then I added a web app manifest. app/public/manifest.json { "short_name": "First Contributions", "name": "First Contributions", "icons": [ { "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" }, { "src": "/android-chrome-256x256.png", "sizes": "256x256", "type": "image/png" } ], "theme_color": "#ffffff", "background_color": "#ffffff", "display": "standalone", "start_url":

OIDC and PWA (add to home screen)

↘锁芯ラ 提交于 2019-12-07 03:42:17
问题 Update: Basically the same issue as Standalone PWA breaks login but on iOS. If you add a web app to the home screen, Chrome on android shares the local storage with the same domain in the browser. You can test this by going to https://wilfrem.github.io/add_to_homescreen_test/ then adding to home screen and see you have the same id when opened from home screen. (I did Nexus 5x) If you do the same in iOS Safari you get a new id. (i did iPod iOS 12.1.1) The oidc-client-js library sets a session

TypeError: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script

烂漫一生 提交于 2019-12-07 00:16:45
I'm trying to add a service worker to a website.I'm using Node.js with Express.js,Vue.js and EJS.^ My node server (index.js) looks like : const https = require('https'); const fs = require('fs'); const express = require('express'); const app = express(); const router = express.Router(); const pool = require('./mysqldb.js'); const pathView = __dirname + "/views/"; var bodyParser = require("body-parser"); const listenPort = 8010; // Process application/x-www-form-urlencoded app.use(bodyParser.urlencoded({ extended: true })); // Process application/json app.use(bodyParser.json()); app.set('view

Manifest start_url is not cached by a Service Worker

南笙酒味 提交于 2019-12-06 19:21:21
问题 I'm using Lighthouse to audit my webapp. I'm working through the failures, but I'm stuck on this one: Failures: Manifest start_url is not cached by a Service Worker. In my manifest.json I have "start_url": "index.html", In my worker.js I am caching the following: let CACHE_NAME = 'my-site-cache-v1'; let urlsToCache = [ '/', '/scripts/app.js', '/index.html' ]; Which lines up with what I see in the Application tab in Chrome Dev tools: So... why is it telling me start_url is not cached? Here is

Push notifications progressive web app on iOS

流过昼夜 提交于 2019-12-06 19:08:11
问题 I need to develop a progressive web app with push notifications integrated. Searching on the web I have found diverse opinions about this subject. If I have understood correctly, for now, we cannot have push notifications in safari for mobile (but only for Desktop). Is it right? Do you have any suggestions to obtain the same result (I am not an iOS expert)? I was wondering that maybe developing a native app only for push notifications purposes could be a good choice until push notification

Uncaught (in promise) TypeError: Request failed

蓝咒 提交于 2019-12-06 17:40:39
问题 I am creating a Progressive Web App for a university project, but when I checked the console I have this error: Uncaught (in promise) TypeError: Request failed - serviceworker.js:1 I don't understand where this error is coming from. The HTML and CSS are showing on as expected, but when I do a PWA audit from the Chrome Dev Tools, it's showing these failures. They are 'no service worker', 'no 200 when offline' and 'user not prompted to install web app'. Any help is appreciated! Thanks in