progressive-web-apps

Unable to get the “Install” option for the PWA

南笙酒味 提交于 2021-01-29 18:21:03
问题 I am trying to make my website as PWA and got the ServiceWorker integrated into it. The ServiceWorker is registered properly as I am able to see the "offline" capabilities. The problem though is that I am unable to get the " Install " button for installing the PWA. I have followed the instructions related to pwa-install package, but still it doesn't work. I have also opened a Github issue for the same which has more details and screenshots: https://github.com/pwa-builder/pwa-install/issues

Role of PHP file in PWA

孤者浪人 提交于 2021-01-29 11:52:14
问题 I am new to the PWA. So I was trying to create a basic website. which include index.html, manifest, serviceworker file, answer.php. Answer.php is running on server. on clicking a button in index.html, it goes to answer.php where data is obtained from the database. I am caching all the files except serviceworker and answer.php. Q1: Should I cache answer.php? Q2: If not, then how can I connect it to indexed db (represent data obtained from server in the form of html file). Q3: what is the role

Deployment of Angular 7 PWA application in Tomcat Apache production server

落花浮王杯 提交于 2021-01-29 09:36:19
问题 I've created an Angular PWA application and built it by running: ng build --prod . It has built the production ready application successfully. I've ran the built application in local by running command: http-server -o , It was running as expected. Problem: When I've deployed in production's server tomcat apache webapp directory and ran it I am getting: Service worker is not registered or does not control the Start URL . Service worker is not registering in my production environment. Please

FCM push notification when subscribers offline

耗尽温柔 提交于 2021-01-29 08:42:39
问题 I was running through FCM documentation and - I would like to understand about what would happen when the subscribers come online after a longer offline period. - Will FCM store all the push notifications received during the offline period - Will FCM deliver all the messages once the subscribers have come online 回答1: If the device is not connected to FCM, the message is stored until a connection is established (again respecting the collapse key rules). When a connection is established, FCM

Why isn't my offline cached subdomain page not loading when called from other subdomain?

强颜欢笑 提交于 2021-01-29 06:50:31
问题 Quick question: I have a service worker that caches a page from subdomain "domainB.project.company.com" Expl: domainB.project.company.com/mypage.html This works, I can see the assets + html being cached in my Chrome Dev Tools. Then I have another subdomain "domainA.project.company.com" with a page domainA.project.company.com/hello.html so, both pages have the same host... Now: the mypage.html is fully cached. Why - when offline - isn't the "mypage.html" shown when navigating to that url from

Progressive Web App (PWA) redirect page into standalone mode

北战南征 提交于 2021-01-29 03:20:10
问题 I have PWA and I can run it as standalone (if user clicks icon on a device) or I can run as normal website (if user enter URL directly into web browser). Is it possible to redirect page (open as standalone) if user open it as non standalone? My manifest file already contain standalone parameter: "display": "standalone" I need something to start with. 回答1: As far as I know you need to "install" the pwa on the user device first. By clicking the icon on the device (meaning you already installed

When does a progressive web app update on making a change to its manifest file?

时光怂恿深爱的人放手 提交于 2021-01-28 11:06:52
问题 I have a progressive web app and I wish to make changes to its manifest file like a change to its start_url, scope, icon, name and short_name. I wish to know, when is it that the updates to the progressive web app take place after making a change to its manifest? I tried the following to force update the web app on Chrome browser: Launch WebAPK Close the WebAPK Modify the Web Manifest Advance Android's system time by 3 days. On my device: Settings>System>Date & Time>Set date Launch WebAPK,

Keep track of progress while precaching assets with the Workbox

泪湿孤枕 提交于 2021-01-28 03:12:39
问题 Imagine we have N assets that need to be pre-cached with a service-worker once user navigated to the web site. We have appropriate precache-manifest.js with listed N-files and we are using workbox.precaching.precacheAndRoute([...]) to configure needed behavior (default CRA setup) Is there a way to keep track of precaching progress when using workbox.precaching.precacheAndRoute or workbox.precaching.precache? I imagine it could be something like passing a parameter-callback function to the

PWA not opening in full screen mode on iphone/ipad

≡放荡痞女 提交于 2021-01-27 16:12:12
问题 I went through several articles related to PWA on ios but still not able to figure out why I am seeing address bar after adding an app to the home screen. I would be glad if someone could help me with this. meta tags in my index file <meta charset="UTF-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta

PWA not opening in full screen mode on iphone/ipad

风格不统一 提交于 2021-01-27 16:09:17
问题 I went through several articles related to PWA on ios but still not able to figure out why I am seeing address bar after adding an app to the home screen. I would be glad if someone could help me with this. meta tags in my index file <meta charset="UTF-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta