Skip to content

Commit 84f40a6

Browse files
committed
Remove deep link
1 parent ffe2e05 commit 84f40a6

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

invite/index.html

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,10 @@ <h1>You're invited to Retune!</h1>
147147
// Universal link format: https://retuneapp.com/invite/{code}
148148
// iOS will handle this via associated domains (applinks:retuneapp.com)
149149

150-
// Deep link for when universal link doesn't trigger
151-
const deepLink = `retune://invite/${inviteCode}`;
152-
153150
// App store url
154151
const appStoreURL = "https://apps.apple.com/us/app/retune-app/id6741438431";
155152

156153
// Show download message for all platforms
157-
// If the app opens (via deep link), user won't see this. If not, they'll see download options.
158154
message.textContent = "Don't have the app?";
159155
content.innerHTML = `
160156
<p style="margin-bottom: 24px;">Download Retune to accept this invitation!</p>
@@ -166,16 +162,6 @@ <h1>You're invited to Retune!</h1>
166162
</div>
167163
</a>
168164
`;
169-
170-
// Detect iOS and try deep link - if app is installed, it will open automatically
171-
const isIPhone = /iPhone|iPad|iPod/i.test(navigator.userAgent);
172-
if (isIPhone) {
173-
// Use a small delay to ensure message is rendered, then attempt deep link
174-
// If app opens, user won't see the page. If not, they'll see download message.
175-
requestAnimationFrame(() => {
176-
window.location = deepLink;
177-
});
178-
}
179165
}
180166
</script>
181167
</body>

0 commit comments

Comments
 (0)