pd4d10 / git-touch

An open-source app for GitHub, GitLab, Bitbucket, Gitea, and Gitee(码云), built with Flutter
Apache License 2.0
1.53k stars 130 forks source link

Deep links support #60

Open shreyas1599 opened 4 years ago

shreyas1599 commented 4 years ago

We need to be able to open external links with the app.

shreyas1599 commented 3 years ago

hi @pd4d10 I managed to get it working(only github links). But stuck on something. Suppose the current account is gitlab, the link wont load. I'm thinking of going through all the accounts, find the first account that is a github account and setActiveAccount to that and then push the deep link screen. I don't know whether this is a good way to do this. Another way is to store one account each for each platform and then load that account when clicking on a deep link. Not sure if this is also good. Do you have any suggestions or would it be better for me to open a WIP and you to test it on your local?

shreyas1599 commented 3 years ago

Also I don't think it's possible to do for iOS. I made it work only on android. For iOS the website needs to host a file to allow it to redirect to the app. See https://developer.apple.com/documentation/xcode/supporting-associated-domains