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•54m ago
Is this a whole blog post for a simple backend that just routes based on the User-Agent?
ericpauley•52m ago
Believe it or not there are entire companies that are (to simplify, of course) just that: https://www.adjust.com/
matthuggins•31m ago
Yep, that's what it is.
Svoka•52m 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•51m ago
it's just a server side redirect based on the user agent headers
m4tthumphrey•47m ago
Err wut... redirecting based on user agents?
MengerSponge•40m ago
I hate QR codes. I don't trust them.
elendilm•32m 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. May not cover all edge cases but works for our usecase. The code was wrung together in a hurry a year ago.

    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•27m 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

F-Droid 2.0

https://f-droid.org/2026/09/24/f-droid-2.0-a-new-chapter-for-android-freedom.html
338•daveoc64•2h ago•91 comments

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

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

Two-tier encryption in the UK

https://macanorak.com/two-tier-encryption-in-the-uk/
257•ReturnoftheHack•6h ago•249 comments

Nokia Design Archive (2025)

https://repo.aalto.fi/index.php?name=SO_b66a9391-dcf8-4399-8e87-611f84c3fc4c
175•pillars•7h ago•92 comments

Agents.md speaks Unix, and you should too

https://www.fmind.dev/articles/agents-md-speaks-unix/
7•fmind-dev•1h ago•0 comments

WaveDigger: Dig into wireless signals to discover their physical locations

https://github.com/christianrowlands/wavedigger
24•882542F3884314B•1d ago•3 comments

GitHub has not removed malicious imitation software after 3 weeks

https://successfulsoftware.net/2026/09/24/github-has-not-removed-malicious-imitation-software-aft...
114•hermitcrab•1h ago•42 comments

B5-BJ2 – Ice Cream Barges – Concrete Ship Constructors (2023)

https://thecretefleet.com/blog/f/b5-bj2---ice-cream-barges---concrete-ship-constructors
8•nixass•2d ago•2 comments

Linux support is coming to Snapdragon X2 series

https://www.qualcomm.com/news/onq/2026/09/snapdragon-summit-agentic-ai-pcs-linux
574•aaronday•18h ago•241 comments

Experiencing writing at our recent Chinese calligraphy workshop

https://viewsproject.wordpress.com/2026/09/06/chinese-calligraphy-workshop/
7•surprisetalk•1h ago•1 comments

Federal judge orders Texas to air condition all prisons by the end of 2029

https://www.texastribune.org/2026/09/22/texas-prison-air-conditioning-lawsuit-ruling/
54•bonefishgrill•1h ago•37 comments

The science of Monkey Island: can grog dissolve a metal mug that fast?

https://jgeekstudies.org/2026/09/23/the-science-of-monkey-island-can-grog-actually-dissolve-a-met...
90•zdw•1d ago•16 comments

Ideas on modernizing the open-source desktop

https://lwn.net/SubscriberLink/1095425/2d9f411252325784/
330•signa11•14h ago•408 comments

RAM: the forgotten history (2024)

https://blog.coredump.cx/p/memory-the-forgotten-history
95•Luc•2d ago•2 comments

When the Debugger Lies

https://danielmangum.com/posts/when-the-debugger-lies/
54•hasheddan•2d ago•17 comments

ArXiv receives multiyear commitments to support it as an independent nonprofit

https://blog.arxiv.org/2026/09/23/arxiv-receives-multiyear-investment/
285•JohnHammersley•18h ago•38 comments

Enjoy Every Sandwich

https://bradmontague.substack.com/p/enjoy-every-sandwich
151•NaOH•1d ago•66 comments

Coulomb's law remains tricky to test at home

https://chillphysicsenjoyer.substack.com/p/coulombs-law-remains-tricky-to-test
16•surprisetalk•2d ago•15 comments

The newest ESP32 can run Linux and it's getting close to a Raspberry Pi

https://www.xda-developers.com/newest-esp32-run-linux-close-to-raspberry-pi/
167•adunk•6h ago•74 comments

VSCode's SSH Agent Is Bananas (2025)

https://fly.io/blog/vscode-ssh-wtf/
293•Rapzid•20h ago•188 comments

Contrastive Language Models

https://contrastive-lm.notion.site/
145•erichocean•13h ago•41 comments

Oracle invokes force majeure on New Mexico AI data center

https://qz.com/oracle-force-majeure-new-mexico-ai-data-center-092426
16•dgellow•1h ago•2 comments

The "Windows XP Box" (2003)

https://www.mini-itx.com/projects/windowsxpbox/
214•doubletwoyou•2d ago•44 comments

The Year of Internal Tools

https://www.geocod.io/code-and-coordinates/2026-09-23-the-year-of-internal-tools
54•thecodemonkey•10h ago•19 comments

What Is RLCD? The Secret Behind Jev

https://di-zhang-llm.github.io/blog/what-is-rlcd-the-secret-behind-jev/
48•tnspacetime•5h ago•6 comments

Fixing the Portobello Police Station Clock

https://pointinthecloud.com/2026-04-11-211700.html
509•avidly•1d ago•112 comments

Hackers influence ChatGPT and Gemini to direct users to scam centers

https://medium.com/@arielsimon/dark-sourcery-how-hackers-manipulate-ai-to-scam-you-88df434d2073
113•ArielSimon•5h ago•38 comments

LinkedIn wins court order blocking mass scraping of user data

https://therecord.media/linkedin-wins-court-order-blocking-mass-scraping
40•ilamont•1h ago•27 comments

Dynamic Abliteration: Non-Destructive Refusal Suppression via Engram Steering

https://blog.madhukaraphatak.in/non-destructive-refusal-supression-using-engram
98•phatak-dev•3h ago•32 comments

Owners mourn spoiled food after firmware update bricks Samsung smart fridges

https://arstechnica.com/gadgets/2026/09/owners-mourn-spoiled-food-after-firmware-update-bricks-sa...
221•nonfamous•4h ago•222 comments