dubinc / dub

Open-source link management infrastructure. Loved by modern marketing teams like Vercel, Raycast, and Perplexity.
https://dub.co
GNU Affero General Public License v3.0
18.96k stars 2.05k forks source link

Add Deep Linking Support for Popular Social Media Platforms #1706

Open mimalef70 opened 2 weeks ago

mimalef70 commented 2 weeks ago

Overview

Implement smart deep linking functionality that detects if users have specific social media apps installed and redirects them to either the native app or web version accordingly.

Key Features

  1. Platform Detection

    • Automatically detect whether users have popular social media apps installed (YouTube, Instagram, etc.)
    • Support for both iOS and Android platforms
  2. Smart URL Handling

    • Convert standard web URLs to their corresponding deep link format
    • Fallback to web URLs when native apps aren't installed
    • Support major platforms:
      • YouTube (youtube.com → youtube://)
      • Instagram (instagram.com → instagram://)
      • [Additional platforms to be considered]
  3. User Controls

    • Add a "Deep Link Preferred" toggle in user settings
    • Allow users to customize their deep linking preferences per platform
    • Provide option to always use web links regardless of app installation

Technical Requirements

  1. Implementation of URL parsing and conversion system
  2. Platform-specific deep link format handling
  3. App detection mechanism for popular platforms
  4. Fallback system for web URLs
  5. User preference storage and management

Benefits

  1. Better User Experience

    • Seamless transition to native apps
    • Faster content access
    • Platform-appropriate viewing experience
  2. Influencer Support

    • Enhanced sharing capabilities
    • Better engagement tracking
    • Improved audience retention

Success Metrics

Reference Implementation

Similar to services like URLgenius (https://app.urlgeni.us/), but integrated directly into our platform.

linear[bot] commented 2 weeks ago

ENG-955 Add Deep Linking Support for Popular Social Media Platforms