Skip to content
Snippets Groups Projects
Commit 12f8b267 authored by Diego Mello's avatar Diego Mello Committed by Guilherme Gazzo
Browse files

[FIX] iOS Universal links (#318)

parent 22cbcf0b
No related branches found
No related tags found
No related merge requests found
...@@ -31,8 +31,18 @@ const handleOpen = function* handleOpen({ params }) { ...@@ -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 @@ ...@@ -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 @@ ...@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment