-
-
Notifications
You must be signed in to change notification settings - Fork 463
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
[WIP] Add zulip:// URI scheme for navigating within app #716
base: main
Are you sure you want to change the base?
Conversation
Is this compatible with the Zulip Android app, which also uses |
@andersk can you explain what you mean by compatible here? |
The mobile app's existing use of zulip:// URLs is only for an authentication flow. But yes, we should coordinate with the mobile team on what URL syntax we want to use for this because the two apps will end up sharing that syntax. |
For the benefit of everyone in this thread, I texted Boris on czo yesterday and asked him to have a look at this PR. Waiting for his suggestions. :) |
I don't think we need to call the |
Right, I wasn't sure about this earlier. We should note that this will raise an error in development mode when a developer tries to use this feature because then if Zulip isn't installed the conventional way, it won't find an executable. (happened to me while testing)
I don't see the need - the system registers the app's protocol regardless, if we just use the current method. Can you explain why this is required if the feature works both on |
I think this is required for macOS. |
I checked it on a Mac in debug mode, without creating an executable. It worked well then. I'll post back later tonight (I'll have to borrow a Mac, can't do that immediately) |
I checked this on a Mac and the protocol is registered, but since the |
Alright, I've done a couple of things.
@akashnimare let me know if it works for you now. |
Haven't tested this yet, just out of curiosity from the gif, does this work if the app is not currently running. |
It does, tested that. :) |
@kanishk98 i think we only need the URI scheme for the production environment and not for the dev environment. Also, i want to work on this. Ping me if some work is required on this. |
I agree, but it's not really that big of a hassle to include it in the dev environment. Just an extra condition that makes the experience better for Windows developers too.
Thanks a ton! I didn't see this earlier, so I ended up testing out |
Assume that Windows executable is stored at C:\Program Files\Zulip\Zulip.exe
Checks if link received by app belongs to a saved domain and switches to the appropriate tab.
@kanishk98 is this ready to review or still WIP? |
This is WIP, I encountered a few bugs in the redirect logic that I haven't fixed yet. |
@kanishk98 i went through the PR. What seems to be the issue here? Maybe, i can help. |
That'd be great. Basically the app doesn't redirect to the intended URL if it's not running (the URL just opens up the app and then it stays there). I'm working on this right now, so I'll PM you for some help. |
Add isURLNarrow() to link-util for identifying which saved domain owns the narrow Fix no-undef error
Also fix redirection issues for macOS. Keep deep linking for both dev and prod builds.
To update everyone keeping an eye on this PR, there are some problems with |
@kanishk98 are we planning to work on this after BrowserView PR gets merge? |
Yeah, I've rechecked the logic for the redirection and the reloading of the |
Heads up @kanishk98, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
An alternative to this, or addition, would be a way to paste a URL into the Zulip App. I get emails with Zulip App URLs. If I open them in the browser, it loads the web app. The emails would have to use the A way to handle any URL may be to paste the URL into the Zulip App search bar and hit enter and have the Zulip App recognize and go to it. |
Hmm, I'm not sure if I agree with this statement. I'd say that OSes are fairly vocal when redirecting users to desktop apps from URLs - think Windows when it asks if you want to open a Zoom link in the app. Shouldn't that make things obvious to the user? |
@akashnimare in case we're planning to pick this up this week or so, I can fix the conflicts and work with @manavmehta on this. |
Just following, if this has any chance of being picked up again? Though 5 years old, this would be quite an important feature for us - lmk if I can help? |
What's this PR do?
Registers links starting with zulip:// to open with the Zulip app. Redirects users with installed app to the correct narrow and server (only if the domain is already saved) in the desktop app.
Any background context you want to provide?
Discussion at #470.
Screenshots?
You have tested this PR on: