-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(android): proxy service worker requests through local server #452
feat(android): proxy service worker requests through local server #452
Conversation
Anyone from the Ionic team (@jcesarmobile perhaps) who wants to take a look at this one? |
Any thoughts or updates on this one- @jcesarmobile? |
also noticed the file was missing the imports - import android.webkit.ServiceWorkerController; |
… server Currently Service Workers are not able to retrieve files served by the local file server. This change fixes this, allowing to use PWA-like offline caching utils. fix #410
Thanks @JohnRSim, I've added the missing imports. Can we please get a response from the Ionic Team (@jcesarmobile or @manucorporat perhaps) whether this PR will be merged or not? Thanks 👍 |
This looks nice but the only fear would be that current Ionic Devs don't expect service workers to work in their app and if they all of the sudden start working that may have unintended consequences for those apps. |
@nphyatt thanks for your reply, appreciate. If we do find this to be a valid concern we could always consider making it configurable or something, can't we? |
It never ceases to amaze me what people might be doing 😄 but yes if we had an opt-in config flag that would ease my worries 😅 |
Haha, true. Would you consider merging this PR when there's an opt-in config flag? If so I'll make sure to add that 😉 |
yeah, if you make it as opt-in and disabled by default we will merge |
Lovely, just pushed some changes making it configurable. |
Looks good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
# [4.2.0](v4.1.3...v4.2.0) (2020-04-14) ### Bug Fixes * **ionassethandler.m:** fix startPath is getting null ([#463](#463)) ([0bf16f1](0bf16f1)) * **ios:** avoid app scrolling to top on keyboard hide ([#533](#533)) ([7974eb4](7974eb4)) * **ios:** Replace deprecated APIs ([#539](#539)) ([27b9021](27b9021)) ### Features * **android:** proxy service worker requests through local server ([#452](#452)) ([c672175](c672175)) * **ios:** implement custom userAgent handling ([#537](#537)) ([8587114](8587114))
🎉 This PR is included in version 4.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Currently Service Workers are not able to retrieve files served by the local file server. This
change fixes this, allowing to use PWA-like offline caching utils.
This fixes #410