Skip to content

ojmaster/MobileAppRedirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Mobile App Redirect Page

A simple webpage that automatically redirects users to the appropriate app store based on their device type.

How it works

  • 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

Setup Instructions

  1. Clone the repository
  2. Open index.html in a text editor
  3. 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
  1. Save the file
  2. Upload to your web hosting service or GitHub Pages

Features

  • 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

Testing

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

Deployment

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.

About

A simple page to redirect a user to an app's respective App Store for their device with 3rd fallback

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages