[FIX] iOS Universal links (#318)

This commit is contained in:
Diego Mello 2018-06-01 18:57:05 -03:00 committed by Guilherme Gazzo
parent 22cbcf0b40
commit 12f8b26701
3 changed files with 14 additions and 1 deletions

View File

@ -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) {

View File

@ -30,7 +30,6 @@
<key>CFBundleURLSchemes</key>
<array>
<string>rocketchat</string>
<string>https://go.rocket.chat</string>
</array>
</dict>
</array>

View File

@ -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>