frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

QR codes that route to the appropriate app store

https://matthuggins.com/blog/posts/qr-codes-that-route-to-the-appropriate-app-store
15•matthuggins•1h ago

Comments

Tiberium•44m ago
Is this a whole blog post for a simple backend that just routes based on the User-Agent?
ericpauley•42m ago
Believe it or not there are entire companies that are (to simplify, of course) just that: https://www.adjust.com/
matthuggins•21m ago
Yep, that's what it is.
Svoka•41m ago
I thought it was something clever, but it shows as URL in QR Scanner, not an APP, which opens browser after activating it, then user would have to confirm redirect to App Store on empty page

TL;DR: it is HTTP redirect based on User-Agent header

arccy•41m ago
it's just a server side redirect based on the user agent headers
m4tthumphrey•37m ago
Err wut... redirecting based on user agents?
MengerSponge•30m ago
I hate QR codes. I don't trust them.
elendilm•22m ago
For our apps Slyp and SlypBusiness, we had the same QR code for each app open Playstore/Appstore page of the app depending on the phone. Hopefully, we will start rolling out Slyp next week.

Just have a branded link (like https://slyp.app/Slyp or https://slyp.app/SlypBusiness) to the official web page and have the js in that page auto-redirect and open the original Playstore/Appstore page.

And yes, we used userAgent for identifying the platform.

If anyone is interested, here is the code

    window.addEventListener('DOMContentLoaded', (event) => {
        let app = 'Slyp'

        var userAgent = navigator.userAgent.toLowerCase();
        if (userAgent.indexOf('android') > -1) {
          window.location.href = `https://play.google.com/store/apps/details?id=com.ndcurve.${app}`;
        } else if (userAgent.indexOf('iphone') > -1 || userAgent.indexOf('ipod') > -1 || userAgent.indexOf('ipad') > -1 || userAgent.indexOf('mac') > -1) {
              if (app === "Slyp")
                window.location.href = 'https://apps.apple.com/app/<app_id>';
              else if (app === "SlypBusiness")
                window.location.href = 'https://apps.apple.com/app/<app_id>';
              else
                window.location.href = 'https://slyp.app';
        } else {
          window.location.href = `https://play.google.com/store/apps/details?id=com.ndcurve.${app}`;
        }
    });
classictraffic•17m ago
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

The Pitești Experiment

https://undevaincomunism.com/the-pitesti-experiment-darkest-chapter-of-reeducation-torture-and-be...
1•jruohonen•57s ago•0 comments

Jensen Huang vs. the A.I. Doomers [the Ezra Klein Show]

https://www.nytimes.com/2026/09/23/opinion/ezra-klein-podcast-jensen-huang.html
1•paulpauper•1m ago•0 comments

From the Voice of Dickie Jones

https://blog.nathanlangley.dev/posts/dickie-jones.html
1•ninjahawk1•2m ago•1 comments

Lifelogging with Large Language Models

https://jaan.io/lifelogging-with-large-language-models
1•paulpauper•2m ago•0 comments

Mysteries of AI Generalization

https://www.astralcodexten.com/p/mysteries-of-ai-generalization
1•paulpauper•2m ago•0 comments

The Power of AI: Mass Collaboration

https://www.cppdepend.com/blog/ai-real-power-mass-collaboration/
2•cppfirst•3m ago•0 comments

Show HN: DeutschDNA – German Tutor Skill for Claude Code and Codex

https://github.com/ahmtsahin/deutsch-dna
1•impala64•3m ago•0 comments

Show HN: Busbar self-hosted execution boundary for Agentic Apps

https://github.com/GetBusbar/busbar
1•mangatgoyal•3m ago•0 comments

Show HN: Whiteboard (YC W26) – an open-source IDE for thoughtful software design

https://github.com/devdotfast/whiteboard
4•sidharthkmenon•4m ago•0 comments

Show HN: Devc – an alternate CLI for launching devcontainers

https://github.com/rameshvarun/devc
1•varunramesh•9m ago•0 comments

Open AI in the Wild: Adoption and Adaptation of Open Models on R/LocalLLaMA

https://dl.acm.org/doi/abs/10.1145/3805689.3812421
1•theanonymousone•10m ago•0 comments

Return-to-office policy in 2026: 8 of 75 top UK employers require 5 office days

https://www.wfhjobs.co.uk/wfh-jobs-research/rto-policy-facts-and-statistics
2•FreddieSO•10m ago•1 comments

Paper2agent Turns Static Papers into Live AI Tools

https://spectrum.ieee.org/paper2agent-ai-agents-research-papers
2•rbanffy•10m ago•0 comments

35 years ago I did it all myself

https://twitter.com/jasonfried/status/2103170272467767753
2•tosh•10m ago•0 comments

For Computer Use, the harness matters as much as the model

https://www.stagehand.dev/evals
9•MiguelG719•12m ago•3 comments

Meta employees don't like to be filmed with there own glasses [video]

https://www.youtube.com/shorts/6Abwd13odL4
2•pixvi•12m ago•0 comments

Show HN: Guardmcp – I scanned the official MCP registry with a config scanner

https://github.com/BerkantACUN/guardmcp
1•melalonsra•12m ago•0 comments

Developer ported Word for Windows 1.1a from 1990 to run natively on Windows 11

https://www.neowin.net/news/developer-ported-word-for-windows-11a-from-1990-to-run-natively-on-wi...
2•bundie•13m ago•0 comments

Does Georgism Work? Five Years Later

https://www.astralcodexten.com/p/does-georgism-work-five-years-later
2•iamnothere•13m ago•0 comments

"Antedisciplinary" Science (2005)

https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.0010006
1•the-mitr•13m ago•0 comments

Why does a Nix store path survive garbage collection?

https://www.labcraft.dev/blog/nix-gc-roots
1•anandsuresh•13m ago•0 comments

Show HN: ThimbleDb, an encrypted lightweight low latency open source database

https://github.com/Jason-Doyle/thimble
2•randomlurker2•14m ago•0 comments

We Have Named Arguments at Home

https://corrode.dev/blog/named-arguments-at-home/
2•dimonomid•15m ago•1 comments

OpenRouter: Server Tools Marketplace

https://openrouter.ai/tools
1•theanonymousone•16m ago•0 comments

Shared Memory for Coding Agents

https://getbelay.vercel.app/
1•doplexlabs•17m ago•0 comments

Lifestreams: A storage model for personal data: ACM SIGMOD Record: Vol 25, No 1

https://dl.acm.org/doi/10.1145/381854.381893
1•rbanffy•18m ago•0 comments

US plan for 90 day diesel export ban could have significant impact on Europe

https://www.politico.eu/article/eu-launches-diplomatic-offensive-to-stop-trumps-diesel-export-ban/
1•ck2•18m ago•1 comments

Open OCI spec for agent sandboxes

https://www.linux.com/featured/docker-commits-to-bringing-the-sandbox-kit-spec-to-the-cncf/
1•pploug•18m ago•0 comments

LLMs can write tool workflows. Will they choose to?

https://github.com/kukushko/agent/blob/main/agent_workflows_exploratory_benchmark.md
1•kukushko•19m ago•0 comments

The International AI Race May Not Be Won by the Smartest AI

https://phroneses.com/articles/leadership/notes/the-ai-race.html
1•speckx•21m ago•0 comments