[FIX] iOS Universal links (#318)
This commit is contained in:
parent
22cbcf0b40
commit
12f8b26701
|
@ -31,8 +31,18 @@ const handleOpen = function* handleOpen({ params }) {
|
|||
yield take(types.APP.READY);
|
||||
}
|
||||
|
||||
if (!params.host) {
|
||||
return;
|
||||
}
|
||||
|
||||
const host = `https://${ params.host }`;
|
||||
|
||||
try {
|
||||
yield RocketChat.testServer(host);
|
||||
} catch (error) {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: needs better test
|
||||
// if deep link is from same server
|
||||
if (server === host) {
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>rocketchat</string>
|
||||
<string>https://go.rocket.chat</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
|
|
|
@ -4,5 +4,9 @@
|
|||
<dict>
|
||||
<key>aps-environment</key>
|
||||
<string>development</string>
|
||||
<key>com.apple.developer.associated-domains</key>
|
||||
<array>
|
||||
<string>applinks:go.rocket.chat</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
Loading…
Reference in New Issue