Post ASOKUUBMCI0xlm9HH6 by DuncanWatson@urbanists.social
(DIR) More posts by DuncanWatson@urbanists.social
(DIR) Post #ASNxJ5qm1bC4Ar7TVo by lauren@mastodon.laurenweinstein.org
2023-02-06T00:04:08Z
0 likes, 1 repeats
This is the kind of #Google "support" page that drives me nuts. Note 156 people asking the same question, but it was just immediately locked with a useless "ask it over somewhere else" response. So typical. - https://support.google.com/chromebook/thread/50901565/how-to-access-localhost-from-chrome-browser-to-android-webserver?hl=en (And no, I can't find an answer anywhere else.)
(DIR) Post #ASNxwNYw6YM0OxVcuW by arvrrob@twit.social
2023-02-06T00:11:08Z
0 likes, 0 repeats
@lauren I had the same experience recently with the Google Home app Public Preview. After being accepted the "Accept" button has a couple of errors depending on the context, leading to the same result (i.e. not being able to participate in the Public Preview). There were many people with the same error. Finally, a moderator noticed it but had the idiot suggestion that we should try with another phone. With whose money did they want us to get one with???
(DIR) Post #ASO62AAVcDQUEQLucq by bashley@nerd.megahuge.com
2023-02-06T01:41:49Z
0 likes, 0 repeats
@lauren it's a bit of a hail-mary, but can you try 127.0.0.2:3456? Using these other valid loopback addresses solves some other esoteric problems.
(DIR) Post #ASO6HBvrL9UC2sfNBY by lauren@mastodon.laurenweinstein.org
2023-02-06T01:44:39Z
0 likes, 0 repeats
@bashley No, it's a much deeper problem. The issue is that Android is effectively in a sandbox. There *is* another IP address that is external, BUT you apparently cannot just substitute it and get an OAuth callback to work.
(DIR) Post #ASO7sYRkh9A4Xcxp7Q by bashley@nerd.megahuge.com
2023-02-06T02:02:29Z
0 likes, 0 repeats
@lauren Before I go I'll just mention that the support page was from 2020 and there have been deprecations in the login tooling and workflow since then as per https://developers.google.com/identity/protocols/oauth2/resources/loopback-migration - hope that helps and good luck
(DIR) Post #ASO8Pnyzx7MiHZMyZs by lauren@mastodon.laurenweinstein.org
2023-02-06T02:08:37Z
0 likes, 0 repeats
@bashley I know. The point is that the same OAuth2 sequence that works fine for native Android fails for Android on a Chromebook. That's not a good thing.
(DIR) Post #ASO9GkKQGobsIQdQcy by lauren@mastodon.laurenweinstein.org
2023-02-06T02:18:10Z
0 likes, 0 repeats
@officialfoxdickfarms Overall I find Chromebooks to be excellent and I've migrated many people from Windows to Chromebooks with great success. (Linux desktops are a non-starter for non-nerds - I run primarily Linux desktops and all Linux servers so I do know.)The OAuth issue is more complicated than just using the external IP -- I know how to get that.As for Linux on Chromebooks, I don't know what you're talking about. Enabling Linux is just one click and it's all done automatically and works great. I'm in Linux at least half the time on my main Chromebook.
(DIR) Post #ASO9QiUjwU4FVODOVc by bashley@nerd.megahuge.com
2023-02-06T02:19:56Z
0 likes, 0 repeats
@lauren Bogus, and unfortunately probably disqualifying for a development target. I personally find the android subsystem on my Chromebook(s) to be wonky at the best of times, often locking up requiring a full ChromeOS restart or randomly toasting apps in full flight. I wouldn't use Android apps on ChromeOS for anything I depend on.
(DIR) Post #ASO9YUAX5cIdOIT3vk by lauren@mastodon.laurenweinstein.org
2023-02-06T02:21:22Z
0 likes, 0 repeats
@bashley This is really the first issue I've had with this relatively complex Android app. Most Android apps I use on my main Chromebook are fine.
(DIR) Post #ASOH2FyL8Vfbj9uKyu by lauren@mastodon.laurenweinstein.org
2023-02-06T03:45:08Z
0 likes, 0 repeats
And for what it's worth, I figured out a workaround for the situation. Essentially, it appears that for some bizarre reason, Chrome has problems with this, but Firefox doesn't. So, install Firefox on Chromebook from Play Store. Switch Firefox to be default browser. Do the OAuth via Firefox. Switch default back to Chrome. Interesting.
(DIR) Post #ASOHV8Fwu3LIC7ufwW by Doug_Bostrom@scicomm.xyz
2023-02-06T03:50:16Z
0 likes, 0 repeats
@lauren Sometimes it feels as though everybody should down tools, let bugs emerge-- before we build more.Systems whiff of crumbly and brittle these days.
(DIR) Post #ASOKUUBMCI0xlm9HH6 by DuncanWatson@urbanists.social
2023-02-06T04:23:50Z
0 likes, 0 repeats
@lauren That was a terrible response from that team. I am glad you found a workaround.
(DIR) Post #ASOLQq1X9HuQJ1NWGe by lauren@mastodon.laurenweinstein.org
2023-02-06T04:34:29Z
0 likes, 0 repeats
@DuncanWatson Unfortunately, despite improvements over the years, far too many #Google help forum pages are effectively useless, and I've been pushing for changes for a very long time. But I'll leave it at that for today.
(DIR) Post #ASPOkXXW4mQdn4NsOm by mtomczak@qoto.org
2023-02-06T16:46:17Z
0 likes, 0 repeats
@lauren Huh. I wonder why Chrome on a Chromebook can't access its own localhost ports?
(DIR) Post #ASPP1bprMDkM2L6SsS by lauren@mastodon.laurenweinstein.org
2023-02-06T16:49:25Z
0 likes, 0 repeats
@mtomczak It's the sandboxing going on. You can find the external IPs, but OAuth2 callbacks want to use 127.0.0.1. The workaround I used turned out to be to set Firefox (which doesn't have this problem, why?) as default long enough for the Android app to use it to authorize, then switch the default back to Chrome. I talked to the author of the app about this last night, and he now is considering using Webview directly in the app to avoid this whole issue, hopefully. Assuming Webview handles this better.
(DIR) Post #ASPXeJIT15NFT2RuTo by mtomczak@qoto.org
2023-02-06T18:25:58Z
0 likes, 0 repeats
@lauren Oh, because it's got an Android environment and that environment isn't necessarily publishing an interface to the TCP stack the Chrome app is running in; now I follow.I love Chromebook for the benefits of the isolation, but it does make it tricky / confusing to do anything even remotely complex on it. We've looked into it as a platform for developing FIRST Robotics machines in the past, and the consensus continues to be "The security model actively gets in the way of developing mobile robotics software."
(DIR) Post #ASPdPeTUaxJ4Wx033A by lauren@mastodon.laurenweinstein.org
2023-02-06T19:30:39Z
0 likes, 0 repeats
@mtomczak What I don't understand is why on the Chromebook, launched from an Android app, Chrome browser can't handle this situation properly but Firefox does. A puzzlement.
(DIR) Post #ASPhbYGXu9biZ8sF3Q by mtomczak@qoto.org
2023-02-06T20:17:34Z
0 likes, 0 repeats
@lauren Ooh, I hadn't thought about that. Yeah, that suggests some shenanigans.I wonder if Chrome itself (being both the browser and the OS) has a funny notion of the TCP stack relative to other apps on the Chromebook? Like... Maybe Chrome is outside a shared Android / other-app sandbox?I really have no idea on this one.