pwa

Is there a way for PWAs to access the phone number of the host device?

允我心安 提交于 2020-08-24 06:53:51
问题 I plan on developing a Progressive Web App for Android devices - one major concern is if the PWA can access the host phone number . Our business is providing cheap mobile phones to our business partners and if our PWA can access the phone numbers of the devices, we can do easier 2-factor authentication. I figure the way a PWA can access the host phone number - is when the user launches the app from their mobile phone's Home Screen. Is this possible somehow? This great answer from Dan doesn't

Is there a way for PWAs to access the phone number of the host device?

徘徊边缘 提交于 2020-08-24 06:53:27
问题 I plan on developing a Progressive Web App for Android devices - one major concern is if the PWA can access the host phone number . Our business is providing cheap mobile phones to our business partners and if our PWA can access the phone numbers of the devices, we can do easier 2-factor authentication. I figure the way a PWA can access the host phone number - is when the user launches the app from their mobile phone's Home Screen. Is this possible somehow? This great answer from Dan doesn't

unintended zoom on orientation change in PWA but not mobile safari iOS

拜拜、爱过 提交于 2020-04-10 18:44:49
问题 I have created a webapp that is exhibiting different behavior between an installed PWA and in normal mobile safari on iOS after an orientation change. When I flip my iPhone or iPad from portrait to landscape and back to portrait again, sometimes the portrait orientation will be zoomed in (and sometimes not). This only occurs in the installed progressive web app (PWA) and not when viewed in the normal mobile safari. Additionally, this behavior occurs only for an iOS PWA (both iPhone and iPad)

unintended zoom on orientation change in PWA but not mobile safari iOS

我与影子孤独终老i 提交于 2020-04-10 18:43:49
问题 I have created a webapp that is exhibiting different behavior between an installed PWA and in normal mobile safari on iOS after an orientation change. When I flip my iPhone or iPad from portrait to landscape and back to portrait again, sometimes the portrait orientation will be zoomed in (and sometimes not). This only occurs in the installed progressive web app (PWA) and not when viewed in the normal mobile safari. Additionally, this behavior occurs only for an iOS PWA (both iPhone and iPad)

How to develop Progressive web app with google app script

此生再无相见时 提交于 2020-02-28 06:53:52
问题 I developed a few appllications with google app script and deployed them as Web apps they are all working fine.Then I decided to convert them to PWA's.The reason was to make them installable on smart phone User's Home Screen, being able to use push notifications, cacheing e.t.c. (All the advantages that PWA's offer in short.) I started learning about PWA's. As a result I came to a conclusion that I need a maifest.json file that browsers dowload , a service-worker.js that again browswers

Service worker sends two requests

只愿长相守 提交于 2020-01-03 17:26:46
问题 I've implemented a service worker which caches all requests for offline usage, this works fine. But everytime I load a page there are two requests hitting my webserver (one from the service worker and one from the browser)! How can I cache the request and only load the page once? service-worker.js self.addEventListener('install', function(event) { //load error page which will show if user has no internet var errorPage = new Request('/?p=error&offline'); event.waitUntil(pushToCache(errorPage))

Multiple PWAs in the same domain

Deadly 提交于 2019-12-22 11:27:17
问题 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 回答1: You may refer with this thread. It stated that you can accomplish this with scoped apps. Update your manifest files to

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

穿精又带淫゛_ 提交于 2019-12-22 06:09:29
问题 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.

Open file with system application in a Progressive Web App

你离开我真会死。 提交于 2019-12-22 04:56: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

Open installed PWA from external url

空扰寡人 提交于 2019-12-18 18:55:07
问题 Is there any method to open website (PWA) urls in the installed PWA in iOS- Safari? Use case: I'm sending email links to login in my PWA, how can I make this url's open directly with the installed PWA instead of the browser? 回答1: If you are using Chrome in Android or any of the desktop OS, that would be the default behavior. Check on "Android intent filter" in this link. This feature is not supported in iOS yet for PWA apps(created using Safari- the only option for iOS as of June-2018).See