Comments (10)
In exciting news, looks like new Safari betas might resolve this issue.
from pwacompat.
So this seems to me to be a fundamental problem with the way iOS uses PWAs; it's not really anything to do with PWACompat except for the fact that PWACompat configures iOS on your behalf.
I'm not against having a "no-on-ios" modifier, but to me, the primary use-case of this library is to support iOS. So if PWAs aren't working on iOS because you have these kinds of auth flows, I'd probably suggest not using PWACompat for the time being.
from pwacompat.
Thanks @samthor. I can confirm that iOS 12.2.0 fixes the issue for us. πππ
from pwacompat.
Some considerations about iOS: https://medium.com/@firt/you-shouldnt-use-chrome-s-pwacompat-library-in-your-progressive-web-apps-6b3496faab62
from pwacompat.
For what i could see, the issue is with the manifest (iOS implementation) and not with the apple-mobile-web-app-capable
. This is why the workaround works!
from pwacompat.
Unfortunately, I think this hack doesn't seem to work anymore. I was just testing it out with my own app on iOS simulator (12.1) and all external links still open safari instead, even without the manifest available. Not sure if something has changed. Tried this without the added complexity of pwacompat, still no dice. Was really hoping to get SSO working but without the redirect, I'm going to have to find another route.
from pwacompat.
I just hit this same issue - Auth with redirect is fine for Google and FB within Safari, but as soon as you add the PWA to the homescreen, the Auth process opens in Safari then tries to redirect to Safari too - leaving the PWA un-auth'd. Bugger.
from pwacompat.
I'm not against having a "no-on-ios" modifier, but to me, the primary use-case of this library is to support iOS. So if PWAs aren't working on iOS because you have these kinds of auth flows, I'd probably suggest not using PWACompat for the time being.
For me, I wish to have the manifest in place for non-iOS users and have my site open in browser for iOS users until apple get their act together.
from pwacompat.
If that's the case, the JavaScript suggested above could be included in your own bundle or inline in the HTML. This just really isn't a PWACompat issue Β―\_(γ)_/Β―
from pwacompat.
Indeed I have included the above code, it is working very well. As soon as these Safari issues are resolved by Apple I can go back to using PWACompat for my poor iOS users :o for now they will be using our system in a Safari window.
from pwacompat.
Related Issues (20)
- Invalid character in IE11 HOT 1
- a2hs for ios is support by pwacompat ? HOT 1
- Serviceworker should be unregistered from android webview chrome version 37.0.3770.67 ~ 37.0.3770.101 HOT 1
- Prioritize maskable icons for apple-touch-icon HOT 3
- Initial Height on iOS w/ Notch + viewport-fit=cover
- Is PWACompat recommended for production projects? HOT 2
- apple-touch-icon not created on iPad iOS 13 HOT 1
- Feature request: prevent meta tags from being added if they already exist HOT 2
- <link rel="apple-touch-icon"> is not created and thus also no icon on boot splash HOT 2
- Splash screen not shown when added on iPad with landscape orientation HOT 11
- Maskable Icons HOT 1
- Use the CDN domain cdn.jsdelivr.net instead of unpkg.com ? HOT 1
- v2.0.16 does not create <link rel="apple-touch-icon"> HOT 1
- Is pwacompat dynamic splash images feature works correctly? HOT 3
- short_name/name is showing in splash screen HOT 2
- C
- CSS modification HOT 1
- README - Edge and links
- Add βfrom (someone)β as WhatsApp?
- if 1 item only, Not display that item in "updateF7SmartSelect()"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pwacompat.