progressive-web-apps

CakePHP 3 to Progressive Web App Back-End

断了今生、忘了曾经 提交于 2020-05-29 10:03:59
问题 I have a web application that is set up in CakePHP 3 WAMP environment. I would like to set it up as a Progressive Web App. So have the existing Model/ Controller act as an API that is exposed to a PWA framework like Angular, (P)React, Vue.js. Where can I find a clear guide/ tutorial on what steps to take to turn my existing application into a functioning backend API? Any tips from someone who has done this? 回答1: Here we go! Read: REST RequestHandlerComponent Routing 来源: https://stackoverflow

CakePHP 3 to Progressive Web App Back-End

随声附和 提交于 2020-05-29 10:03:19
问题 I have a web application that is set up in CakePHP 3 WAMP environment. I would like to set it up as a Progressive Web App. So have the existing Model/ Controller act as an API that is exposed to a PWA framework like Angular, (P)React, Vue.js. Where can I find a clear guide/ tutorial on what steps to take to turn my existing application into a functioning backend API? Any tips from someone who has done this? 回答1: Here we go! Read: REST RequestHandlerComponent Routing 来源: https://stackoverflow

Push Notifications in iOS for Progressive Web Apps

点点圈 提交于 2020-05-15 04:57:28
问题 I have developed a Progressive Web App by using Javascript. I am unable to receive Push Notifications in iOS platform for my app, but at the same time i am receiving Notifications for Android and Web apps browsers. I read somewhere still no support for iOS notifications. Please help me if you guys have any info to achieve this. 回答1: All the leading browsers with the exception of Safari on iOS web push API. While Safari does support push notifications on Mac OS, there is no green signal for

Push Notifications in iOS for Progressive Web Apps

倖福魔咒の 提交于 2020-05-15 04:56:08
问题 I have developed a Progressive Web App by using Javascript. I am unable to receive Push Notifications in iOS platform for my app, but at the same time i am receiving Notifications for Android and Web apps browsers. I read somewhere still no support for iOS notifications. Please help me if you guys have any info to achieve this. 回答1: All the leading browsers with the exception of Safari on iOS web push API. While Safari does support push notifications on Mac OS, there is no green signal for

Angular5 PWA doesn't refresh (Service Workers)

一世执手 提交于 2020-05-15 04:46:25
问题 I'm developing an app with angular5, using service workers via the ng-cli, but I realized that after the first time the app shell loads, it doesn't refresh. How can I push new file versions to my app after build it with ng build ?. I could directly rewrite the sw.js manually, but as it is generated via the cli, I don't like to affect anything I don't know what is for. I'm looking for this answer all day, but as service workers are new for the 1.6 version of the ng-cli, I have not found any. I

How to import a script in Service Worker when using Webpack

倖福魔咒の 提交于 2020-05-13 07:36:13
问题 In a Service Worker, I'm trying to import another helper script using importScripts, however I keep getting a Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:5000/src/js/utility.js' failed to load. I have the following code in the Service Worker: importScripts('../src/js/utility.js'); workbox.routing.registerRoute(/.*(?:jsonplaceholder\.typicode)\.com.*$/, function(args){ console.log('Json placeholder being called'); // Send

PWA2APK on play store is still showing url

时光总嘲笑我的痴心妄想 提交于 2020-04-30 07:01:05
问题 I created a progressive web app, and it works perfectly. It prompts for installation and it saves the link on the android home and it shows no url address bar. Then I used PWA2APK (https://appmaker.xyz/pwa-to-apk/) to create an APK and deploy on play store. Once built, I downloaded the assetlinks.json, added the certificate SHA-256 modifying the assetlinks.json in this way (I changed values): [ { "relation": ["delegate_permission/common.handle_all_urls"], "target": { "namespace": "android_app

Why does document.body.requestFullscreen() work on the first invocation only?

ぐ巨炮叔叔 提交于 2020-04-30 06:37:21
问题 I have the following method which works on the 1st call, however if I hit the Esc key and then try my FullScreen button nothing happens. Debugging the code shows the else is not executing so document.body.requestFullScreen() is being called again but it has no effect?? What did I miss? /** * Full Screen Mode + works on Windows7 Chrome v80 and Android Chrome. - 20180415 - 20200417 Moved from ChannelsTitleComp */ FullScreenToggle() { // document.body.requestFullscreen() works on Windows Chrome

React router direct links not working on Azure Web App Linux

天大地大妈咪最大 提交于 2020-04-28 20:47:24
问题 I've developed an PoC about PWA (Progressive Web Apps) using ReactJs to show how to use camera, geolocation, microphone, light sensors and etc from Browser API. I've created a route for each feature in this web app and everything works fine in localhost. But when I deploy the npm build version of my react app on Azure Wep App Linux service it don't work properly. I can access the main page (index.html) and from there I can navigate to any other page, but when I try access any route direct

How to cache entire website first login using cache API (Service Worker)

牧云@^-^@ 提交于 2020-04-18 05:46:47
问题 I have a website with a few pages. I know all URL of the website and asserts and its a PHP based. My main objective is in the first login, I want to cache the entire website. Currently, I used SW to caching by navigation, that works fine. What is the better approach? Following is the code I tried. self.addEventListener('install', function (event) { event.waitUntil( caches.open(CACHE_DYNAMIC_NAME) .then(function (cache) { cache.addAll([ '/assets/app/css/vendor.css', '/assets/app/css/app.css',