V2 - Add universal link support for macOS (#4693)

* add universal link support

* add changelog

* add docs about universal links

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Andrey Pshenkin 2025-12-10 05:14:23 +00:00 committed by GitHub
commit a0cb86ebff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 35 additions and 4 deletions

View file

@ -59,6 +59,24 @@ func main() {
}
```
If you want to handle universal links as well, follow this [guide](https://developer.apple.com/documentation/xcode/supporting-universal-links-in-your-app) to add required entitlements, add required keys to Info.plist and configure `apple-app-site-association` on your website.
Here is example for Info.plist:
```xml
<key>NSUserActivityTypes</key>
<array>
<string>NSUserActivityTypeBrowsingWeb</string>
</array>
```
And for entitlements.plist
```xml
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:myawesomeapp.com</string>
</array>
```
### Windows
On Windows Custom Protocol Schemes is supported only with NSIS installer. During installation, the installer will create a