A simple webpage that automatically redirects users to the appropriate app store based on their device type.
- Apple devices (iPhone, iPad, iPod, MacOS, Apple Vision Pro) → Redirects to App Store
- Android devices → Redirects to Google Play Store
- All other devices (Desktop, etc.) → Redirects to GitHub
- Clone the repository
- Open
index.htmlin a text editor - Replace the placeholder URLs in the JavaScript section:
const APP_STORE_URL = 'https://apps.apple.com/app/your-app-id'; // Your iOS App Store link
const PLAY_STORE_URL = 'https://play.google.com/store/apps/details?id=your.package.name'; // Your Google Play Store link
const FALLBACK_URL = 'https://github.com/yourusername/yourrepo'; // Your Fallback link- Save the file
- Upload to your web hosting service or GitHub Pages
- Automatic device detection
- 1.5-second loading screen with spinner
- Fallback manual link if automatic redirect fails
- Responsive design that works on all screen sizes
- Clean, modern UI with gradient background
To test the redirect functionality:
- Use browser developer tools to simulate different devices
- Or test on actual iOS/Android devices
- Desktop browsers will redirect to the GitHub link
This is a static HTML file that can be hosted anywhere:
- GitHub Pages
- Netlify
- Vercel
- Any web hosting service
Simply upload the index.html file to your hosting provider.