[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);
|
yield take(types.APP.READY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!params.host) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const host = `https://${ params.host }`;
|
const host = `https://${ params.host }`;
|
||||||
|
|
||||||
|
try {
|
||||||
|
yield RocketChat.testServer(host);
|
||||||
|
} catch (error) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: needs better test
|
// TODO: needs better test
|
||||||
// if deep link is from same server
|
// if deep link is from same server
|
||||||
if (server === host) {
|
if (server === host) {
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
<key>CFBundleURLSchemes</key>
|
<key>CFBundleURLSchemes</key>
|
||||||
<array>
|
<array>
|
||||||
<string>rocketchat</string>
|
<string>rocketchat</string>
|
||||||
<string>https://go.rocket.chat</string>
|
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
|
|
|
@ -4,5 +4,9 @@
|
||||||
<dict>
|
<dict>
|
||||||
<key>aps-environment</key>
|
<key>aps-environment</key>
|
||||||
<string>development</string>
|
<string>development</string>
|
||||||
|
<key>com.apple.developer.associated-domains</key>
|
||||||
|
<array>
|
||||||
|
<string>applinks:go.rocket.chat</string>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
Loading…
Reference in New Issue