News for hackers. Stuff that matters.
Re:Google Pixel 6 and Pixel 6 Pro by lostmsu on Tuesday October 19, 2021 @10:43PM (#28926180)
How can you live without Android's back button/gesture behavior?
Re:Google Pixel 6 and Pixel 6 Pro by BoorishBears on Tuesday October 19, 2021 @11:16PM (#28926359)
I mostly develop for Android devices and use iOS.

I have literally never missed not having a "always-back" button. Where would I want it that a way to go back isn't baked into the flow?

I mean half the Android apps out there have broken backstack implementations anyways so pressing back on Android will do anything from send you back one screen to set your hair on fire and everything in between so...

Re:Google Pixel 6 and Pixel 6 Pro by kitsunesoba on Wednesday October 20, 2021 @12:21AM (#28926720)
As another cross platform mobile dev that mainly uses iOS, this is how I feel too. It’s much easier to mentally model things with intra-app and inter-app navigation being entirely separate.

Navigating within apps is frustrating enough between apps that intentionally implement wonky custom stuff for no reason and cross platform apps that don’t obey conventions by nature, the last thing I want is those same apps mucking up otherwise consistent app switcher behavior.

Re:Google Pixel 6 and Pixel 6 Pro by lostmsu on Wednesday October 20, 2021 @02:00AM (#28927280)
The most common scenario I have is switching from RSS reader into web browser for the full article and back. This is also about 50% of what I do on the phone that's not scrolling web pages vertically.
Re:Google Pixel 6 and Pixel 6 Pro by BoorishBears on Wednesday October 20, 2021 @02:30AM (#28927422)
Isn't that just swiping left and right on the bottom of an iOS device?

(Switches between your current app and last app for reference)

Re:Google Pixel 6 and Pixel 6 Pro by sincerely on Wednesday October 20, 2021 @03:59AM (#28928001)
I've been using iphones for a decade and had no idea I could do this...not sure if it's a me problem or an apple problem but discoverability of gesture based shortcuts seems like a difficult challenge
Re:Google Pixel 6 and Pixel 6 Pro by lostmsu on Wednesday October 20, 2021 @01:15PM (#28933244)
Swiping back to the reader won't close the browser tab.
Re:Google Pixel 6 and Pixel 6 Pro by BoorishBears on Wednesday October 20, 2021 @06:33PM (#28937687)
Oh then that makes this the perfect example of what I mean:

iOS has Safari Services for when an app wants to support visiting a 3rd party site (so you don't want a WebView) without leaving the app.:

https://images.squarespace-cdn.com/content/v1/52428a0ae4b0c4...

As you can see a clear "Done" button, that's straightforward enough. Hit it and you go back to the app.

But even better, you can promote it to a normal browser tab by hitting the Safari button at the bottom!

That will transfer the tab to Safari with a transition to make it clear now you are in Safari can use the app switcher to go back and forth.

It's a great example of how the SDK baking explicit back handling into components ends up being better than a generic "always goes back" concept apps have to implement.

-

Ironically Android has something similar called Custom Tabs but they're not widely used for multiple reasons: https://medium.com/@vardaansh1/use-chrome-custom-tabs-they-s...

I'm also not sure if they support promotion to a browser tab natively, I'm guessing you have to add your own UI to close it and fire off an intent for the system browser

Re:Google Pixel 6 and Pixel 6 Pro by lostmsu on Wednesday October 20, 2021 @07:41PM (#28938326)
This sounds worse all the way round.

1. It is a less general solution to a relatively common problem so less beautiful.

2. It probably does not work if your link is a deep link into another app, e.g. Netflix. Especially if that another app can in turn link elsewhere, e.g. IMDB

3. My default browser on Android is Firefox, cause I like my uBlock Origin.

Re:Google Pixel 6 and Pixel 6 Pro by BoorishBears on Wednesday October 20, 2021 @10:26PM (#28939542)
1. What? How is a fleshed out API dedicated to presenting websites "less general"?

2. Are you talking about Custom Tabs or Safari Services? Because Safari Services handles deep links fine...

3. Custom tabs work with Firefox if enabled in Settings

I mean Custom Tabs, like most of Google's efforts on Android start, is a half-baked concept. And like most of Google's efforts on Android, there is a chance that they will actually flesh it out, and there's a chance they might not and it'll just kinda exist and undergo death by a thousand small-but-unaddressed bugs...

SFSafariViewController had its teething issues back in the day but Apple worked on it until it became something something most apps use, most people use, and it's seamless enough they don't know they're using it (especially because it supports everything Safari does, from ad blocking to reader mode)

Re:Google Pixel 6 and Pixel 6 Pro by lostmsu on Thursday October 21, 2021 @01:29AM (#28940673)
I am talking about iOS behavior without the back button.

1. showSafariView(), that has Done button, that returns back to you, which is less general than show(appView), that has Back button, that works for any appView, system or not.

2. I do not know iOS. You tell me what the experience would be. On Android in RSS I click a Netflix deeplink, that sends me to the show in Netflix app. There I click IMDB link, that opens IMDB app for the show. After checking out reviews I click Back, that brings me back to the show view in Netflix, I check "Add to Watchlist" here, then Back again, and I am back in my RSS reader. My guess is that Done functionality you mentioned before would stop working after encountering the very first deep link to Netflix, which my guess is will either open Netflix website in Safari popup (bad, because not the app) or open Netflix the app (but that won't have the Done button).

3. Good to know.