# One QR Code on a Business Card Sends iPhones to the App Store and Androids to Google Play

Original title: QR codes that route to the appropriate app store

> Hacker News story 49832417 · language: en · submitted 2026-09-24
> Web version: https://zeli.app/story/49832417
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 20 · by [matthuggins](<https://news.ycombinator.com/user?id=matthuggins>) · 💬 9
[original](<https://matthuggins.com/blog/posts/qr-codes-that-route-to-the-appropriate-app-store>) · [HN discussion](<https://news.ycombinator.com/item?id=49832417>)

## Summary

When I announced PokerNexus, I mentioned a separate shortlink host for printed links. This post explains what it does: a QR code on a business card encodes a single URL, go.pokernexus.com/app, and a small Hono service reads the User-Agent header to route iPhones to the App Store, Androids to Google Play, and everyone else to the website. It covers bot detection, the iPad problem, 302s, Vary, and query strings.

## Key quote

> A wrong answer that lands on the website is still a working page, while a wrong answer that lands in a store is an install prompt for a device that can't run the app.

## HN discussion (9 comments)

### [classictraffic](<https://news.ycombinator.com/item?id=49833671>)

> I agree with the other commenters that this is a pretty simple engineering problem, but I still enjoyed reading about edge cases the author worked to address (they could have taken the easy road with this but tried not to). I forgot that Safari on iPad doesn't specify iPad in user agent headers

### [Tiberium](<https://news.ycombinator.com/item?id=49833270>)

> Is this a whole blog post for a simple backend that just routes based on the User-Agent?

### [m4tthumphrey](<https://news.ycombinator.com/item?id=49833386>)

> Err wut... redirecting based on user agents?

---

## Cite

- Page: https://zeli.app/story/49832417
- Date: 2026-09-24
- Source: matthuggins.com (https://matthuggins.com/blog/posts/qr-codes-that-route-to-the-appropriate-app-store)
- Hacker News: https://news.ycombinator.com/item?id=49832417

## Other languages

- zh: https://zeli.app/zh/story/49832417 · markdown: https://zeli.app/zh/story/49832417.md
- ko: https://zeli.app/ko/story/49832417 · markdown: https://zeli.app/ko/story/49832417.md
