Back button in iOS PWA

I have saved discourse on my iPhone as short cut app since discourse is PWA but I found one simple feature is missing. Which is going Back button. I tried to swipe left but not working.

Is there any hidden tip to do this?

Unfortunately Apple PWA implementation leaves a lot to be desired. So much that some sites are resorting to user agent sniffing to be able to change the display_mode in the webmanifest only for iOS users.

I will run some tests on this and try a fix next week.

5 Likes

This should help:

https://github.com/discourse/discourse/commit/c8b5e6baae17bbb50a8173b5cd32944df0bad20a

3 Likes

It used to be full screen, but I changed it a few weeks ago because people asked here: Back button in iOS PWA

4 Likes

Yes, this is a problem. I just added the tag in one of my forums, and it worked - but the missing back-button is indeed a downer.
Maybe one could offer an (optional) additional back-button in the menu bar, left from the search and burger-icons?

We just gave up on the Apple current PWA implementation and detect iOS devices and remove the full screen aspect. This was inspired by the Starbucks PWA that did the same:

If you want to propose (mockup, code, etc) a back button for the iOS PWA experience, please open a topic about it.

6 Likes

I see. Thanks for clarification.

Swipe to go back has been a thing in Safari for the longest time. Is it disabled in PWAs or something?

3 Likes

Swipe to go back isn’t accessible or discoverable, especially when the platform standard is to either have a “back” button in the upper-left corner or not at all.

7 Likes

When? Where?I can’t recall a website that supports this…

It is a built in mobile safari feature, I use it all the time.

1 Like

Heavens. It works! You have to catch the outermost left side - in a “regular” iOS App you may grab anywhere on the screen to swipe.
Anyway: this seems to be disabled in PWA fullscreen mode:

https://forums.developer.apple.com/thread/99579

dammit.

image

8 Likes

ahhh this is the problem. I was trying to find it. Is there anyway to go back to the setting via json or some jquery to override it via customizing the html, no meta tags do it. So im assuming this was gone before its just that the old shortcut was saved prior to then

How are users supposed to use the back button when full screen?

1 Like

I had no problem I would just click the old school icon in the upper right. We are talking about the old add to home screen like this right? If so, then I never really cared but there is a way for a bar to pop up isnt there, or use shortcuts like a left swipe? Invision power boards has it on their forums

Left swipe to go back is disabled by Apple in this mode:

We didn’t design Discourse to be used without the browser back-button, so we disabled the feature for now, like Starbucks in the example above.

Android doesn’t have this problem because a back button is permanent in either the OS UI or in the form of a physical back button.

We are always happy to discuss and re-evaluate, but the situation is kinda messy in iOS.

2 Likes

but if it was active before, why not give the option of a checkbox for certain tiers to enable it for their discourse? It worked great before a nd a lot of the people who used it loved it.

Not on the latest Android Oreo though… they are looking at getting rid of those required buttons because a fullscreen “all screen” phone like the iPhone X/XS … is the future :wink:

1 Like

That is a manufacturer specific customization, only in OxygenOS (OnePlus family). It would not be the first time that Android adopts a manufacturer customization, but considering the time a new Android version takes to spread we are talking 3 years to have some adoption.

If they remove I just hope they don’t block it in the place where it’s so needed like Apple did :stuck_out_tongue_winking_eye:

1 Like