Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: urlscheme handler fails to navigate to post after app is initialized by graysky:/… invocation #530

Open
donaldguy opened this issue Feb 9, 2025 · 5 comments

Comments

@donaldguy
Copy link

Describe the bug

As I awkwardly accidentally captured in TheIconfactory/Tapestry#23 (comment):

Proof the settings (mostly - failure + initializing split screen was unexpected but left in for completeness) working:

Timeline.1.mov

(⌃ Edited to downscale for GitHub size cap, but went ahead and cut out 2 pauses and also an inadvertent detour to Home Screen between 0:17 and 0:18 ;

such detour does NOT seem to be required for it working again on a different skeet/post, but there happened to be one omitted here)

Urlscheme based invocation will only navigate to the post requested if the app was already initialized. Otherwise it remains on the Home Screen.

In video above was as split screen (alongside a shortcut for getting bundle id commensurate to that PR), but subsequent testing confirms repro on fullscreen as well

To reproduce

  1. Close graysky from app switcher (or likely simply wait long enough that iOS/iPadOS has unloaded as inactive, as I believe was case for video above - following failed attempts to beef up PR with some other clients too)

  2. Open a url such as graysky://profile/graysky.app/post/3lhcz54xyas24 (in safari, from another app, in shortcuts)

  3. Observe that you are still on homepage (after splash screen and brief spinner)

  4. Switch apps back to where ever else, reinvoke the URL

  5. See that as expected post is now loaded

Additional information

Graysky Version 1.6.3 , newly installed from App Store minutes before first occurrence (I’d been using on older iPad previously tho)

iPad Air 13-inch (M2) [MV273LL/A] running iPadOS 18.3 (22D63)

Battery is pretty low, but I doubt that’s causing a race

@donaldguy
Copy link
Author

As an aside, it would be good to explicitly document this urlscheme functionality, I could not find it when I looked (and had initial trouble turning it up by keyword search on the source as well)

@donaldguy
Copy link
Author

Initial attempt to check if it also happens navigating to https://bsky.app/profile/graysky.app/post/3lhcz54xyas24 with the safari extension enabled seemed to result in the extension failing to work entirely

(Directly entering url in safari stays there, as does following links from DDG search results; entering the url into spotlight initially opened official Bluesky client instead.

After uninstalling that, spotlight & shortcuts just go to safari and stays as well.

Pushing extension button displays:

Image

Popover ; TBD if safari or device restart following bsky app uninstall remedies)

@donaldguy
Copy link
Author

donaldguy commented Feb 9, 2025

yeah, switching back to my older iPad ( 2018 11" Pro with A12XBionic; MU162LL/A ) that:

  • already had Graysky installed,
  • did not have the Bsky app installed, and
  • where I (still freshly) granted "Allow always on every website" (as opposed to on newer where I said "for one day" and only on bsky.app)

I also cannot get the extension to seem to work (initialized in background graysky or otherwise) [via in-safari navigation, from spotlight, from the link in above comment in github app]

I did initially not have safari set as default browser on here, but I do now

--

I did get the (also newly enabled for testing) "Open in Ivory" extension to catch/redirect a link to https://mastodon.social/@bcantrill ;

and it Open-in-app bannered: https://mastodon.social/@bcantrill/113976133850603810 [after an open in background of the profile page]) - so the broad functionality is still possible

Open in Ivory didn't catch anything on my home instance (hachyderm.io) tho - so there may be finicky session/cookie stuff (or they just may not have it as a url slug?); logging out of bsky.app did not immediately appear to make a difference


[ no evidence either of your extension picking up a profile (v post) link [as bsky.app/profile/foo — with our without https:// explicit; nor as foo.bsky.social — which you never claimed it should, but I thought I'd try for completeness ]

@surfdude29
Copy link
Contributor

I'm not using Graysky a huge amount these days, but fwiw I ran into this issue too when I made an 'Open in Graysky' Shortcut. It works great when the app is already open in the background, but it just opens up to the Skyline when it's not.

@mozzius
Copy link
Owner

mozzius commented Feb 10, 2025

Yeah, I think this is because it (incorrectly) redirects you to the home page after logging in. This is probably fixable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants