Comments (11)
Ah. I believe this is actually a service-worker issue. (Mobile Safari doesn't support them.)
Looking a little more closely at this, curl https://personal-logger.now.sh/foods
returns a 404 response, which is consistent with what I'm seeing on mobile.
That same URL in (desktop) Chrome is handled by the service worker, which is what redirects it to the SPA.
from personal-logger.
I tried following the Now create-react-app guide and using serve
for routing, but this caused my deploys to start failing with an out of memory error. This might be due to the fact that I'm on the cheapest plan.
For now, I think I'll just fix this by replacing the BrowserRouter
with the HashRouter
.
from personal-logger.
Resolved via d5ad60c
from personal-logger.
Hey @bvaughn , wasn't able to recreate the bug on my device. Direct navigation didn't break anything.
from personal-logger.
Really! So you can successfully eg delete things?
This consistently 404s for me, on device and simulator
from personal-logger.
Was able to delete things successfully.
from personal-logger.
Strange. Any time I try to create a new item, or delete one, or navigate to any page other than the root URL- I get a 404 back. This happens on my iPhone for Chrome and Safari, and on my simulator for Safari.
from personal-logger.
I've managed to reproduce the bug on my iPhone 8 using Chrome. If I refresh a page or try deleting an item, I get a 404.
from personal-logger.
👍
I see that behavior in all of my iOS browsers, on all iOS devices/simulators.
from personal-logger.
Confirmed by visiting https://personal-logger.now.sh/foods on Chrome in Android. Got the 404 response. Then visited https://personal-logger.now.sh before retrying https://personal-logger.now.sh/foods and it worked the second time (because the service worker had been installed).
from personal-logger.
So I think the solution to this is to configure Now to do a 404 redirect for me.
from personal-logger.
Related Issues (20)
- Add iOS PWA meta tags HOT 1
- Sleep duration should support decimal values HOT 1
- Numeric inputs should allow the 0 to be deleted HOT 1
- Saving a resource doesn't return to list page (on production) HOT 1
- Add confirmation modal to delete process HOT 1
- Disable Safari/iOS page bounce behavior HOT 4
- Fix elastic scroll bounce for iOS
- Add spicy Boolean attribute to food HOT 1
- Disable auto capitalize behavior for inputs HOT 8
- Unable to authenticate with GitHub provider HOT 9
- First-time Twitter authorization throws multiple console errors HOT 1
- Is linting always desired for JSON and CSS files, or only at precommit? HOT 1
- Report view HOT 5
- Add "meal size" attribute to food entries HOT 5
- Replace Firebase/Firstore with something better HOT 15
- Re-think list view(s) HOT 4
- Add `calories` in the food form HOT 1
- Protect app from unauthorized users HOT 1
- Can't login via Google/Github/Twitter in Chrome/Safari HOT 2
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 personal-logger.