progressive-web-apps

Problems when updating PWA app built with PWA2APK on Google Play

て烟熏妆下的殇ゞ 提交于 2020-12-26 07:01:54
问题 I have used PWA2APK to upload the first version of my React app to Google Play. It worked great. But every time I try to update the app by uploading a new version, I get the following: You uploaded an APK that is not signed with the upload certificate. You must use the same certificate. The upload certificate has fingerprint: SHA1: ******************* and the certificate used to sign the APK you uploaded has fingerprint: SHA1: ********************** Your APK or Android App Bundle needs to

Problems when updating PWA app built with PWA2APK on Google Play

馋奶兔 提交于 2020-12-26 07:00:57
问题 I have used PWA2APK to upload the first version of my React app to Google Play. It worked great. But every time I try to update the app by uploading a new version, I get the following: You uploaded an APK that is not signed with the upload certificate. You must use the same certificate. The upload certificate has fingerprint: SHA1: ******************* and the certificate used to sign the APK you uploaded has fingerprint: SHA1: ********************** Your APK or Android App Bundle needs to

beforeinstallprompt not firing in iOS

∥☆過路亽.° 提交于 2020-12-16 03:36:22
问题 Website Url: [redacted] Prompt works in Samsung Internet, Windows Desktop Chrome, Android Chrome Prompt does NOT work in Safari or Chrome for iOS Lighthouse tests pass (ignore the start_url error, whether or not I fix that has no effect. I've tried) PWA is installable on Android, iOS, and Windows Offline mode works as expected in the PWA When I run the lighthouse test, I get console error (even though image DOES exist): Error while trying to use the following icon from the Manifest: [redacted

What to change to prevent double request from service worker?

ぐ巨炮叔叔 提交于 2020-12-12 11:59:24
问题 Please do not mark as duplicate. This is not an exact duplicate of the other similar questions here on SO. It's more specific and fully reproducible. Clone this repo. yarn && yarn dev Go to localhost:3000 and make sure under (F12)->Applications->Service workers, the service worker is installed. Go to Network tab and refresh a few times(F5) Observe how the network requests are doubled. Example of what I see: Or if you want to do it manually follow the instructions below: yarn create-next-app

Adding a new header to a Request, while preserving the body

懵懂的女人 提交于 2020-12-09 09:50:28
问题 I am setting up a PWA for my company in house usage. What method should I use to attach a bearer token to all of the requests from dom or web-worker. This method that I am using works as expected when posting a form or json but I would like a cleaner or friendlier method as I don't trust that the text fallback will suffice. I was looking for a function in Google's workbox.js service worker module to see if I could set up a intercept to always append the Bearer token when a request gets made

Close/exit a PWA programmatically

霸气de小男生 提交于 2020-12-08 05:51:19
问题 How can I close/exit my PWA? I had assumed I'd be able to do this: window.close(); Unfortunately, that results in the usual error: Scripts may close only the windows that were opened by it. Is there any way to programmatically close my PWA? 回答1: So following MDN documentation on this: window.close In the past, when you called the window object's close() method directly, rather than calling close() on a window instance, the browser closed the frontmost window, whether your script created that

Local share target handler with workbox ony works if PWA recently active

喜你入骨 提交于 2020-12-08 04:04:59
问题 I use workbox in my serviceworker to handle requests to a share-target url (defined in manifest.json ) locally (offline). On Android, once added to home screen (A2HS) from Chrome, my app is available as share-target, for image files, to other apps. The implementation generally works perfect. my share-target handler stores the received files in browser-cache and redirects to a follow-up /share route (which then handles pictures from cache) locally. But from time to time, the serviceworker

How to change the Android navigation bar color in a PWA?

北城余情 提交于 2020-12-06 02:59:12
问题 I would like to change the color of the Android navigation bar on the web when I add the page on the Android home screen (Progessive Web App) but when I open the PWA, the color of the Android navigation bar is black and I want Change the color to white. In the manifest, you can change the color of the theme and I do, but still follow the color black. Is it possible to do that? Edit I mean the Android navigation bar, not the notification bar. Edit I upload the image in dropbox because Stack

URL not found on Google Play app when signed in as internal app tester

三世轮回 提交于 2020-12-05 03:34:32
问题 I'm trying to publish a PWA on the Google Play store, and coming up against some confusing problems testing as an internal app. I used PWA2APK to convert my PWA to an APK. There are not major issues found through the pre-launch report, and only one accessibility warning. The project passed all of the requirements for the Play Store in December. I am the only user on the internal app testing list, and I receive an error message when attempting to install on Android through the internal app

No Service worker files ngsw.json / ngsw-worker.json generated when running build --prod. Angular 5

删除回忆录丶 提交于 2020-12-02 07:15:36
问题 Using angular 5.1.2 Angular-cli 1.6.3 all files are pretty vanilla. dist folder is created My ngsw-config.json { "index": "/index.html", "assetGroups": [ { "name": "app", "installMode": "prefetch", "resources": { "files": [ "/favicon.ico", "/index.html" ], "versionedFiles": [ "/*.bundle.css", "/*.bundle.js", "/*.chunk.js" ] } }, { "name": "assets", "installMode": "lazy", "updateMode": "prefetch", "resources": { "files": [ "/assets/**" ] } }] } my app.module.ts uses ServiceWorkerModule