4

Noticed you can save the programming.dev site as an app on iOS (add to Home Screen). When you do this though, there doesn’t seem to be a “back” button or anything similar. So when you navigate to read post comments, you can’t get back to the list of threads.

Thought maybe a swipe left would work, but no luck.

No biggie, just something to consider in the site design.

top 6 comments
sorted by: hot top controversial new old
[-] canpolat@programming.dev 4 points 1 year ago

Works fine on Android (Firefox).

[-] ruffsl@programming.dev 3 points 1 year ago

Yea, luckily Android can use the back navigation gesture in the PWA to traverse the site much like a browser tab's history. Android even has the lesser know forward navigation as well: handy when you accidentally pressed the back navigation gesture, but don't want to have to find the link you clicked before to get back to the same page you backed out of.

I wish the website or PWA had more of a short term memory about the state of pages you visit. As when I go back and forth posts and feeds, I have to return the content sort option back to what I was using before I left the comment section, as well as re-minimize the same comment threads, even if those comment subtrees never changed sence I folded them previously.

[-] lemann@lemmy.one 1 points 1 year ago

We have a hardware back button but iOS doesn't 🙃

OP might have better luck using the Voyager or Wefwef webapp on their device, iirc that includes a back button in its UI

[-] ruffsl@programming.dev 2 points 1 year ago

Not sure how to help on iOS. Perhaps you could modify the manifest file for the PWA, before installing it, and change the display property to something other than fullscreen or standalone, so that the browser navigation bar is retained, but at that point, might as well use the browser anyway.

https://developer.mozilla.org/en-US/docs/Web/Manifest/display

Perhaps you could file a ticket on the Lemmy UI repo about iOS PWA navigation? Although, surely iOS web devs must have a solution to such a common UI pattern.

[-] Standroid@programming.dev 1 points 1 year ago

Seems to work for me. Inside a thread theres always a back button on the top left and swiping on the post itself also returns to the list.

[-] reddig33@lemmy.world 1 points 1 year ago

Figured this out (or maybe something changed in the PWA code) — if you swipe left to right from the very edge of the screen, it goes back.

You practically have to start your swipe on the bezel of the phone, but it works.

this post was submitted on 15 Jul 2023
4 points (75.0% liked)

Programming.dev Meta

2365 readers
2 users here now

Welcome to the Programming.Dev meta community!

This is a community for discussing things about programming.dev itself. Things like announcements, site help posts, site questions, etc. are all welcome here.

Links

Credits

founded 1 year ago
MODERATORS