Open gedw99 opened 1 year ago
I want to add support for Universal Link, but I didn't include that in the same patch, to keep it simple.
Fun fact, Windows also supports it: https://learn.microsoft.com/en-us/windows/uwp/launch-resume/web-to-app-linking. But, gio is Win32, and not UWP. Far I know, Golang can't compile to UWP (https://github.com/golang/go/issues/21805), but I'm not sure if that issue still valid. However, sometimes it's possible to call UWP functions from Win32, that is the case in "Share-Dialog", for instance. I found that exists one functions that adds an URL at runtime (https://learn.microsoft.com/en-us/uwp/api/windows.system.appurihandlerregistration.setappaddedhostsasync?view=winrt-22621), and here we have the IDL (https://github.com/ojdkbuild/tools_toolchain_sdk10_17763/blob/a647d1194cd10afdaa52f8056db239b7598fe1dd/Include/10.0.17763.0/winrt/windows.system.idl#L1203-L1212). Since it's a COM API, I'm not sure if it will be approved in Gio, that is very messy. But, I'm a little bit curious to see if that works. :P
Deeplinks are great. We could also make it work with Universal Links.
What are universal links?
Universal links are web links which point to some content on the web and in your app. Universal links are different from deeplink as they are pure web links where as deeplinks will always start with yourAppScheme:// and open the app.
Shared web credentials, universal links, Handoff, and App Clips all use associated domains via the Universal links concept.
https://developer.apple.com/documentation/xcode/allowing-apps-and-websites-to-link-to-your-content
And extra info here:
https://developer.apple.com/documentation/xcode/supporting-associated-domains
This is a very good walk through of how to set it setup and working.
https://nishbhasin.medium.com/apple-universal-link-setup-in-ios-131a508b45d1
Summary of steps and GIO aspects....
URL: https://developer.apple.com/account/resources/identifiers/list
Now you need a CaddyFIle. You can run a Static or Reverse proxy. both work.
Now we run it:
./.well-known/apple-app-site-association