progressive-web-apps

Why does upload image via camera work on mobile-safari but not as iOS PWA?

馋奶兔 提交于 2019-12-21 02:55:17
问题 I have a webpage with PWA capabilities. On iOS safari I do get the usual OS dialog asking me if I want to take a photo or upload a picture from the photo library: After "installing" it as an PWA via the menu "Add to Homescreen" button and starting it via homescreen, I still get the same options, "choose from library" still works, but when choosing "take a photo", the iOS camera app opens, as expected, but stays completely black. html: <head> <meta charset="utf-8"> <title>dingsda user

WKWebView analog of service worker

你。 提交于 2019-12-21 02:34:41
问题 I'm trying to implement part of app with PWA approach, that works fine on Android , but not for iOS . We need to have offline content availability option to update content dynamically (like special offers or so). With service worker we show prompt to update web content. As were mentioned here service workers are not supported within WKWebView (or UIWebView ). So is there analog or alternative solution like smart cache control? Seems like it is possible to store some web content from app and

Issue with PWA on iOS 113

丶灬走出姿态 提交于 2019-12-21 01:12:14
问题 I have a PWA that I've been using perfectly till I updated my phone to 11.3 ( introduce Service Workers supports, so in my iPhone it was only a bookmark ) and all worked like a charm. After I've updated to iOS 11.3 I wasn't able to enter to my app because I have an external login (in other domain) so each time I try to open my open this will open a safari browser to make the auth. Before PWA in iOS the external URLs were open in the same open (without open safari). Do you know if this is the

PWA - beforeinstallprompt not called

孤人 提交于 2019-12-20 11:42:11
问题 Hello I'm trying to install a custom PWA "Add to Homescreen". The ServiceWorkerRegistration is successful. But the function beforeinstallpromp is not calling after register. <script type="text/javascript"> function request_debug(paramdata){ document.getElementById('output').innerHTML += '<BR>'+ paramdata; } window.addEventListener('load', function() { document.getElementById('output').style.display = "block"; if('serviceWorker' in navigator) { navigator.serviceWorker.register('sw.js').then

Facebook Login not working in PWA app if app is in stand alone state

馋奶兔 提交于 2019-12-20 11:35:36
问题 I am building a PWA webiste. I am using Angular JS and I used javascript facebook login in my website. But if I view my app in browser, facebook login is working. But when I add shortcut to homescreen and launch the app from the homescreen, FB login is not working. Facebook page is loading. But after entering credentials it shows blank page. Can anyone help ? Here is my FB login code var doBrowserLogin = function(){ var deferred = $q.defer(); FB.login( function(response){ if (response

How to refresh the page after a ServiceWorker update?

只谈情不闲聊 提交于 2019-12-20 09:46:15
问题 I've consulted a lot of resources on Service Workers: Updating your ServiceWorker ServiceWorker: Revolution of the Web Platform Jake Archibald's lovely SVGOMG. However, I can't for the life of me figure out how to update the page after a new ServiceWorker has been installed. No matter what I do, my page is stuck on an old version, and only a hard refresh (Cmd-Shift-R) will fix it. No combination of 1) closing the tab, 2) closing Chrome, or 3) location.reload(true) will serve the new content.

How to bring chrome to foreground from a web app

人盡茶涼 提交于 2019-12-20 06:20:14
问题 Is there any windows apps/google chrome flags/google chrome extension/javascript methods or any other thing that would allow to bring a chrome window from background(minimized) to foreground when something happens inside a website. I do have access to the client computer, I could set chrome flags/kiosk mode or anything that would prevent it from opening to foreground if it's possible. For example I am trying to bring the window to foreground when an order comes in, through a notification (I'm

Polymer web app element null pointer exception

ぐ巨炮叔叔 提交于 2019-12-20 06:01:22
问题 I am user iron-list with iron-ajax but after ajax response when pushing element to iron-list giving null exception = "Cannot read property '_list' of undefined" <script> Polymer({ is: 'my-home', ready: function () { this.$._ajax.generateRequest(); }, onResponse: function (e) { var people = e.detail.response.data; people.forEach(function (person) { this.$._list.push('items', person); }); // Clear the lower threshold so we can load more data when the user scrolls down again. this.

How do I deploy Angular App to Heroku and keep as PWA? [duplicate]

怎甘沉沦 提交于 2019-12-20 02:56:14
问题 This question already has an answer here : Angular 6 PWA with Node not working (1 answer) Closed 9 months ago . Summarize the problem : I'm trying to deploy my Angular 6 App to Heroku and keep the progressive web app features. There's no service worker for the end build on Heroku. Background : I've built a local Sports Store app in Angular 6. I'm following the book Pro Angular 6, 3rd Edition. by Adam Freeman and have gotten the app to roughly the stage at the end of chapter 9. GitHub

firebase auth not work with PWA installed on Android desktop

不问归期 提交于 2019-12-19 09:06:36
问题 I have built a SPA that works in the browser in that on load it provides an auth option, I click google signin and the firebase auth flow continues until I have an auth token etc. I can then switch the PWA and use as normal. But if I then logout, I cannot log back in again with the App using Google Auth - whether I let the google signin popup run in the App or in Chrome, no confirmation ever gets abck to the App and indeed it seems to crash. The issue has something to do with the loading of