Switch to universal links on iOS

This commit is contained in:
Ivan Grachev 2022-08-26 22:17:13 +03:00
parent d105d6e5a3
commit bd2c72de59
2 changed files with 5 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class AccountsListViewController: UIViewController, DataStateContainer {
} }
@objc private func processInput() { @objc private func processInput() {
let prefix = "tokenary://" let prefix = "https://tokenary.io/extension?query="
guard let url = launchURL?.absoluteString, url.hasPrefix(prefix), guard let url = launchURL?.absoluteString, url.hasPrefix(prefix),
let request = SafariRequest(query: String(url.dropFirst(prefix.count))) else { return } let request = SafariRequest(query: String(url.dropFirst(prefix.count))) else { return }
launchURL = nil launchURL = nil

View File

@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:tokenary.io</string>
</array>
<key>com.apple.security.application-groups</key> <key>com.apple.security.application-groups</key>
<array> <array>
<string>group.io.tokenary</string> <string>group.io.tokenary</string>