Universal App Store Redirect Service

This service automatically redirects users to the appropriate app store based on their platform and the provided app ID format.

Usage

Make a GET request to the redirect endpoint with a single app identifier:

GET /redirect?id=<app_identifier>

The id parameter accepts:

Examples

# iOS App Store ID curl "http://localhost:8087/redirect?id=1234567890"
# Android Bundle ID curl "http://localhost:8087/redirect?id=com.example.myapp"

Redirect Logic

The service automatically determines the appropriate store based on:

Redirect behavior:

  1. iOS device + iOS ID → App Store ✅
  2. Android device + Android ID → Google Play ✅
  3. Android device + iOS ID → App Store (fallback) ⚠️
  4. iOS device + Android ID → Error (incompatible) ❌
  5. Other platforms + iOS ID → App Store (fallback) ⚠️
  6. Other platforms + Android ID → Error (incompatible) ❌

The service will:

  1. Display a loading page
  2. Detect user's platform and analyze ID format
  3. Collect device information using JavaScript
  4. Send analytics data to the configured endpoint
  5. Redirect to the appropriate store or show an error