[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); 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) {

View File

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

View File

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