Status Update: Firebase Dynamic Links Is Being Discontinued and will be fully shut down on August 25, 2025. After that date, all existing links will stop working, and creating new links will no longer be possible.
Recommended Alternative:
1. Go to https://www.qrcode-monkey.com/ and create a QR Code for your download page: e.g https://yourdomain.com/applink.html
2. Add the QR to your website e.g http://app.cleantie.com
3. Make a page called applink.html and copy paste the following sample code, and replace the sample link with your own Apple App Store and Google Play download links
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Open Cleantie App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
padding: 50px;
}
a {
display: inline-block;
margin: 10px;
padding: 12px 20px;
font-size: 16px;
text-decoration: none;
color: white;
background-color: #007aff;
border-radius: 8px;
}
a.android {
background-color: #3ddc84;
}
</style>
<script>
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
var isIOS = /iPad|iPhone|iPod/.test(userAgent) && !window.MSStream;
var isAndroid = /android/i.test(userAgent);
var isDesktop = /windows|macintosh|linux/i.test(userAgent);
window.onload = function() {
if (isDesktop) {
// Show download links for desktop users
document.body.innerHTML = `
<h1>Download the Cleantie App</h1>
<p>You are viewing this link from a desktop device. Please download the app using the links below:</p>
<a href="https://apps.apple.com/ca/app/cleantie/id1454392774" target="_blank">Download for iPhone</a>
<a href="https://play.google.com/store/apps/details?id=com.cleantie.android" class="android" target="_blank">Download for Android</a>
`;
return;
}
// Mobile devices - try to open app
var appUrl = "cleantie://";
window.location = appUrl;
// Redirect to store if not installed
setTimeout(function() {
if (isAndroid) {
window.location.href = "https://play.google.com/store/apps/details?id=com.cleantie.android";
} else if (isIOS) {
window.location.href = "https://apps.apple.com/ca/app/cleantie/id1454392774";
} else {
window.location.href = "https://cleantie.com";
}
}, 1500);
};
</script>
</head>
<body>
<p>Opening Cleantie app...</p>
</body>
</html>
Comments
0 comments
Please sign in to leave a comment.