News for hackers. Stuff that matters.
Re:Modern iOS Navigation Patterns by rezonant on Wednesday December 13, 2023 @02:22AM (#38623735)
The activity stack experience in Android is probably my favorite part of the system design. It produces a deep consistency that makes navigation effortless.

I really wish this had been built in to iOS in the same way.

The activity stack works across applications, which means a back gesture always brings you back to the screen before it, even when several applications work together on a task.

Re:Modern iOS Navigation Patterns by wiradikusuma on Wednesday December 13, 2023 @02:39AM (#38623847)
Don't iOS apps have that small black back icon on the top left that sometimes appears when you open another app?
Re:Modern iOS Navigation Patterns by malermeister on Wednesday December 13, 2023 @05:16AM (#38625188)
sometimes is the problem. It's not consistent.
Re:Modern iOS Navigation Patterns by emsy on Wednesday December 13, 2023 @05:58AM (#38625544)
That's just not true.
Re:Modern iOS Navigation Patterns by immanentize on Wednesday December 13, 2023 @06:11AM (#38625645)
I had to Google it and I think I've seen this thing in the status bar sometimes on iOS but it's definitely not consistent.

I wasn't even aware it was supposed to be a button

Re:Modern iOS Navigation Patterns by K2L8M11N2 on Wednesday December 13, 2023 @07:26AM (#38626358)
It appears every time you get into an app by clicking a notification while you're in another app, and it's 100% consistent in that context.
Re:Modern iOS Navigation Patterns by bshacklett on Wednesday December 13, 2023 @08:35AM (#38627107)
The fact that you had to explain how it works indicates that a bit more consistency might be beneficial.
Re:Modern iOS Navigation Patterns by room500 on Wednesday December 13, 2023 @08:51AM (#38627310)
It is consistent when the apps are consistent.

But it will not appear if the app opens the webpage as its own View (instead of opening Safari). In that case, there is no button and the user has to hunt for how to go back. And the user has no way of knowing whether an app will open Safari or will open the webpage itself.

iOS requires users to build muscle memory in learning how to use each app. Android requires users to maintain a back stack in their head to remember what came before. Switching between the two is very jarring.

Re:Modern iOS Navigation Patterns by rezonant on Wednesday December 13, 2023 @01:13PM (#38631591)
To be fair, captive browsers are also a plague on Android apps. I despise them and especially so if there's no way to turn them off in a particular app.
Re:Modern iOS Navigation Patterns by cassianoleal on Wednesday December 13, 2023 @08:53PM (#38636848)
If it's a full-screen in-app webview, there's a Done button on the top-left; alternatively, you can swipe back from the first page in the webview and it will close the webview and leave you where you were.

If it's a card webview, just swipe it down from the top edge.

> Switching between the two is very jarring.

I think that's the crux of the problem. Someone who's used to one style and has built muscle memory and some kind of hierarchy and ontology of the interaction with the system will have trouble with a different paradigm. That doesn't necessarily mean there's something wrong with either - they're just different, and some people will prefer one over the other.

Switching between GNOME and KDE, or vice-versa, has a similar effect.

Re:Modern iOS Navigation Patterns by malermeister on Wednesday December 13, 2023 @10:40AM (#38628975)
> It appears every time

Would be consistent.

> It appears every time [long list of qualifications]

Is inconsistent.

Re:Modern iOS Navigation Patterns by cassianoleal on Wednesday December 13, 2023 @08:48PM (#38636824)
It is consistent. If the current app was opened by another app (e.g. by clicking a link that opened Safari, or if you're in Safari and click a link that opens in another app, etc), the button will be there.

OTOH if the current app was opened manually by the user, it won't be there.

Re:Modern iOS Navigation Patterns by emsy on Thursday December 14, 2023 @12:23PM (#38644034)
It is literally just one qualification, which doesn't even apply because why would the "back to previous app" button show when you're in the same app. In the meantime you haven't mentioned one inconsistency yourself. If you like discussions with made up arguments may I suggest you check out reddit?
Re:Modern iOS Navigation Patterns by QkPrsMizkYvt on Wednesday December 13, 2023 @07:29AM (#38626393)
It is consistent!
Re:Modern iOS Navigation Patterns by cout on Wednesday December 13, 2023 @06:27AM (#38625795)
I don't remember ever seeing (or noticing) anything like that on ios. Do you have a screenshot?
Re:Modern iOS Navigation Patterns by jrockway on Wednesday December 13, 2023 @07:50AM (#38626590)
This is for things like clicking ads in the New York Times. Safari will open, and then at the top left of the screen there will be a "< NY Times" indicator. It's below the clock and above the aA icon in the URL bar.
Re:Modern iOS Navigation Patterns by Terretta on Wednesday December 13, 2023 @09:19AM (#38627701)
Not just Safari. Most any two apps that support passing things from one app to the next (e.g. via Share Sheet, or a deep link, or etc.), the next app has a back to first app.
Re:Modern iOS Navigation Patterns by cout on Wednesday December 13, 2023 @10:03PM (#38637294)
OK I see it now when I click on a link in the mail app. I've never seen it before because when I open a link with safari in the gmail app it opens a safari view inside gmail with a Done button at the top.
Re:Modern iOS Navigation Patterns by HumblyTossed on Wednesday December 13, 2023 @09:11AM (#38627594)
That itty bitty teeny weeny thing? Yeah, it's occasionally there.
Re:Modern iOS Navigation Patterns by tacker2000 on Wednesday December 13, 2023 @06:15PM (#38635584)
Yea, everytime I see that thing I think to myself that that they needed to “hack” this feature together in less than 10 minutes or something like that.

It just feels so “out of space” and tacked on.

Re:Modern iOS Navigation Patterns by isoprophlex on Wednesday December 13, 2023 @03:34AM (#38624309)
Swipe up from the bottom middle edge of the screen to bring that up on ios? Or do you mean something else?
Re:Modern iOS Navigation Patterns by rezonant on Wednesday December 13, 2023 @04:30AM (#38624783)
Not that, it's about how you navigate through screens in the same app and in multiple apps. Since the back gesture and back stack is universal and all apps are presenting activities added to the back stack, you can seamlessly move between apps using "intents" which are abstracted messages that multiple apps understand, and even tunnel through an arbitrary number of apps, and back up through each of their screens as if they were all in the same application.

An example of an intent is "can anyone open this PDF file" or "the user wants to pick a file, can any app do that and let me know what they picked?"-- those file pickers could also be from your network browser app, or Dropbox, etc.

And since activities are serializable (well, technically the intents that led to those activities being started), Android can do this without requiring the apps deep in the app stack to be running. It can freeze those apps to reserve resources and restart them at the specific activity when the user returns, if necessary.

iOS does have limited inter-app linking (it's the tiny little back arrow and the previous app name that you'll sometimes see at the very top of the screen), but since back gestures aren't universal, the only reliable way to activate that feature is to tap it, since the app may not even understand back gestures, let alone do the extra work of relinquishing control when their own local back stack is empty.