mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
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:
parent
7aaa203c5f
commit
a0cb86ebff
6 changed files with 35 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue