progressive-web-apps

How do you push Application updates on an installed PWA application?

拈花ヽ惹草 提交于 2019-12-11 18:05:39
问题 My question is, Is it possible for the Users to acquire these changes without having to REINSTALL the PWA application? I have a PWA application deployed in Production. The client already installed the deployed PWA application in their MOBILE devices and I want to DEPLOY another patch of updates in the PWA application in the HTTP server. 回答1: Another simple way to update application is using workbox-window. You can detect updates in PWA and restart your application to get the last updates. For

Migrating google app script web app to progressive web app?

你说的曾经没有我的故事 提交于 2019-12-11 17:54:42
问题 I have a working google app script web app and trying to migrate it as a progressive web app. I googled but found no documents on how to do it. I found a link describing how to migrate a web app into a progressive one in the fallowing link (on the google site): Migrate Your Site to Progressive Web App I started applying the steps but, when it comes to change the default manifest file (appsscript.json) I got an error like "Invalid manifest:unknown property name ". The original manifest content

Cannot scrub/scroll through jPlayer audio when mp3 is cached by Workbox

 ̄綄美尐妖づ 提交于 2019-12-11 16:32:42
问题 I have converted a single page HTML5 Cordova app into a PWA. The app uses jPlayer extensively to play mp3 files. I am using a variant of the circular jPlayer here: http://jplayer.org/latest/demo-05/. The circle player has a circular progress bar that can also be used to scrub backwards and forwards through the track. Everything works fine in PWA mode until I cache the mp3 with Workbox (version 4.3.1). Then scrubbing fails. I can grab the scrub bar and move it but when I release it the track

push subscription has unsubscribed or expired, with statusCode 410

坚强是说给别人听的谎言 提交于 2019-12-11 15:56:24
问题 Push subscription has unsubscribed or expired, with statusCode 410 , in less then 24 hours. I'm using web-push to send notifications with fcm-endpoint & vapidDetails. It works fine for few hours, I can send notifications. But just after few hours saved-fcm-endpoint-subscription is getting unsubscribed or expired, with statusCode 410 , when I try to send notification from the backend. I'm deploying & checking in Heroku. The below code is to save subscription-object in the server/backend. swReg

display server generated image in PWA using JavaScript in iOS

巧了我就是萌 提交于 2019-12-11 13:42:41
问题 Facing issue in PWA. I am trying to display image in WKWebview in iOS using HTML, Javascript. Example: I have added below file in xCode project and configuring with WKWebview. in .html <img id="myimage" onclick="changeImage()" src="http://res.cloudinary.com/klipfolio/image/upload/v1500283193/pic_bulboff_to4zaq.png" height="180"> <p>Click the lightbulb to turn on/off the light</p> in .js file (JavaScript) window.changeImage = function() { element=document.getElementById('myimage'); if (element

Is it possible to broadcast messages in a production PWA using FCM for Web without having a dedicated XMPP server?

≡放荡痞女 提交于 2019-12-11 13:19:34
问题 This is an architectural question. I haven't implemented FCM yet, but as far as I understand someone needs to deploy an XMPP server in a real world scenario which provisions the inventory of the registered device tokens. In my use case I'd like to just broadcast short messages about important update information, like "XY presenter's session at 15:00 got cancelled" and I'm not interested in the device tokens. My application is a Progressive Web App, so I would use FCM for Web. The demos I saw

NullPointerException when using Trusted Web Activities on Android (multiple devices)

自闭症网瘾萝莉.ら 提交于 2019-12-11 12:46:48
问题 I'm using TrustedWebActivities and I'm getting an immediate app crash on Samsung S8, S9, and Pixel 2 devices with the below Exception. Some research suggests that this might happen on devices where there's an older version of Chrome installed which doesn't support TWA and the fall-back method fails. But I've confirmed that the Chrome version is 71 (also, this works on Samsung S7, Pixel 3). java.lang.NullPointerException: at android.support.customtabs.TrustedWebUtils.launchAsTrustedWebActivity

How to deploy your Xamarin iOS to the web as a progressive web application (PWA)

扶醉桌前 提交于 2019-12-11 11:38:32
问题 I am new to Xamarin and I have successfully created an application in Xamarin for iOS. What I need is a way for this application to be viewed in the browser as a PWA. I figured to learn xamarin because I thought that this was a useful resource. I have looked in to ooui but I can't successfully attach my Xamarin project to ooui. At the end of this project I will have a running PWA coded in c# for iOS in the browser. A link to the Xamarin can be found here: https://github.com/SunRhythms

Push notifications in Progressive web app through GCM

断了今生、忘了曾经 提交于 2019-12-11 11:33:09
问题 while sending push notification i got ( Uncaught (in promise) ReferenceError: require is not defined(…)) error.here is my code const endPoint = subscription.endpoint.slice(subscription.endpoint.lastIndexOf('/')+1); console.log(endPoint); var gcm = require('node-gcm'); var message = new gcm.Message({ notification: { title: "Hello, World", icon: "ic_launcher", body: "This is a notification that will be displayed ASAP.", tag:"hello" } }); var regTokens = [endPoint]; var sender = new gcm.Sender(

Can't access arrayBuffer on RangeRequest

五迷三道 提交于 2019-12-11 11:29:58
问题 Trying to solve the problem referenced in this article: https://philna.sh/blog/2018/10/23/service-workers-beware-safaris-range-request/ and here: PWA - cached video will not play in Mobile Safari (11.4) The root problem is that we aren't able to show videos on Safari. The article says it has the fix for the issue but seems to cause another problem on Chrome. A difference in our solution is that we aren't using caching. Currently we just want to pass through the request in our service worker.