Skip to content
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

disable manifest.json for iOS #441

Merged
merged 1 commit into from
Aug 19, 2018
Merged

disable manifest.json for iOS #441

merged 1 commit into from
Aug 19, 2018

Conversation

nolanlawson
Copy link
Owner

fixes #45

This PR UA sniffs for iOS devices and sends a 404 for /manifest.json. It's an unfortunate workaround for this problem, but I've confirmed that it allows "add to homescreen" to work on iOS. When you tap the homescreen icon, it just opens Pinafore in Safari.

@nolanlawson nolanlawson merged commit 9a79a6f into master Aug 19, 2018
@nolanlawson
Copy link
Owner Author

Dang, it looks like this will only work if you clear the Safari data. Apparently the way Service Workers work on Safari is that it doesn't overwrite a 200 response with a 404 response, so the client just never sees the 404ing manifest.json. 😕

Clearing Safari data works, though. Add to homescreen causes the icon to just open in Safari. I guess this is better than nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PWA support on iOS 11.3
1 participant