Skip to content
Guide November 23, 2024 5 min read

How to Create App Store QR Codes That Detect iOS vs Android

One QR code should send iOS users to the App Store and Android users to Google Play. Here's how to do it.

QRKit Team

Content

The challenge with app store QR codes is that iOS users need an App Store link and Android users need a Google Play link. One QR code cannot encode both — but a smart redirect can solve this problem.

Platform detection is the key to a seamless app download experience. Users should not have to choose between "iPhone" and "Android" QR codes. One QR code should automatically route them to the correct store.

If you do not have a smart redirect, create two separate QR codes — one for App Store, one for Google Play — and label them clearly.

How to handle platform detection

There are several approaches to platform detection. Here are the most common:

  • Use a single landing page URL in the QR code
  • The landing page detects the user agent (iOS or Android)
  • Redirect iOS users to apps.apple.com/app/idXXXX
  • Redirect Android users to play.google.com/store/apps/details?id=com.app
  • Services like OneLink or Branch handle this automatically

Approach 1: Smart redirect services

Several services specialize in smart redirect for app stores. These handle platform detection automatically:

Popular services

  • Branch: Full-featured mobile linking platform — free tier available
  • AppsFlyer OneLink: Enterprise-grade with deep analytics
  • Bitly: Offers smart redirect as a premium feature
  • Firebase Dynamic Links: Free from Google — handles iOS and Android
  • Kochava: Attribution platform with smart redirect

Approach 2: Custom landing page

If you have a website, you can create a custom landing page that detects the platform and redirects:

How it works

  1. Create a page on your website (e.g., yoursite.com/getapp)
  2. Add JavaScript to detect the user agent
  3. If iOS: redirect to apps.apple.com/app/idXXXXXXXXX
  4. If Android: redirect to play.google.com/store/apps/details?id=com.yourapp
  5. If desktop: show a page with both store links and a QR code

Approach 3: Two separate QR codes

The simplest approach if you do not have a website or redirect service:

  • Create one QR code linking to the App Store URL
  • Create another QR code linking to the Google Play URL
  • Label them clearly: "iPhone" and "Android"
  • Place them side by side on your materials
  • This takes more space but is foolproof

URL formats

Use the correct URL formats for each platform:

  • iOS: https://apps.apple.com/app/idXXXXXXXXX (use the numeric app ID)
  • Android: https://play.google.com/store/apps/details?id=com.yourapp
  • Keep URLs as short as possible — use URL shorteners if needed
  • Test both URLs in a browser before generating QR codes

Testing

  1. Test the QR code on an iPhone — should open the App Store
  2. Test the QR code on an Android — should open Google Play
  3. Verify the correct app appears in each store
  4. Test with the app already installed — should open the app
  5. Test on desktop — should show a landing page with both options
One QR code, two platforms, zero confusion. Smart redirect is the difference between a professional app download campaign and an amateur one.

QRKit's URL QR Code Generator creates app store QR codes for free — use with a smart redirect service for best results.

Tags: app-store-qr-code ios android
Share:

Put it into practice

All QRKit tools are free. Pick one and start creating.

Browse all tools