Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. F-Droid 2.0(f-droid.org)
    75comments
  2. Two-tier encryption in the UK(macanorak.com)
    229comments
  3. Nokia Design Archive (2025)(aalto.fi)
    88comments
  4. GitHub has not removed malicious imitation software after 3 weeks(successfulsoftware.net)
    27comments
  5. Linux support is coming to Snapdragon X2 series(qualcomm.com)
    239comments
  6. WaveDigger: Dig into wireless signals to discover their physical locations(github.com/christianrowlands)
    2comments
  7. B5-BJ2 – Ice Cream Barges – Concrete Ship Constructors (2023)(thecretefleet.com)
    1comments
  8. Ideas on modernizing the open-source desktop(lwn.net)
    394comments
  9. The science of Monkey Island: can grog dissolve a metal mug that fast?(jgeekstudies.org)
    15comments
  10. Why is the human body so crap except for the liver?(dynomight.net)
    discuss
  11. Experiencing writing at our recent Chinese calligraphy workshop(viewsproject.wordpress.com)
    discuss
  12. RAM: the forgotten history (2024)(coredump.cx)
    2comments
  13. ArXiv receives multiyear commitments to support it as an independent nonprofit(arxiv.org)
    37comments
  14. Enjoy Every Sandwich(bradmontague.substack.com)
    61comments
  15. When the Debugger Lies(danielmangum.com)
    17comments
  16. Coulomb's law remains tricky to test at home(chillphysicsenjoyer.substack.com)
    12comments
  17. The newest ESP32 can run Linux and it's getting close to a Raspberry Pi(xda-developers.com)
    69comments
  18. VSCode's SSH Agent Is Bananas (2025)(fly.io)
    186comments
  19. Contrastive Language Models(contrastive-lm.notion.site)
    41comments
  20. The "Windows XP Box" (2003)(mini-itx.com)
    44comments
  21. The Year of Internal Tools(geocod.io)
    18comments
  22. Federal judge orders Texas to air condition all prisons by the end of 2029(texastribune.org)
    3comments
  23. LinkedIn wins court order blocking mass scraping of user data(therecord.media)
    20comments
  24. Fixing the Portobello Police Station Clock(pointinthecloud.com)
    112comments
  25. Virtio-nvgpu: Near-native Nvidia GPU access inside a KVM guest(github.com/nestrilabs)
    59comments
  26. Hackers influence ChatGPT and Gemini to direct users to scam centers(medium.com/arielsimon)
    34comments
  27. Dynamic Abliteration: Non-Destructive Refusal Suppression via Engram Steering(blog.madhukaraphatak.in)
    31comments
  28. Owners mourn spoiled food after firmware update bricks Samsung smart fridges(arstechnica.com)
    213comments
  29. What Is RLCD? The Secret Behind Jev(di-zhang-llm.github.io)
    4comments
  30. Why 'What's Opera, Doc?' looks like that(animationobsessive.substack.com)
    22comments

QR codes that route to the appropriate app store

15 pointsby 1h agomatthuggins.com
9 comments
30m agoHN ↗

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

28m agoHN ↗

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

27m agoHN ↗

it's just a server side redirect based on the user agent headers

23m agoHN ↗

Err wut... redirecting based on user agents?

8m agoHN ↗

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.

Just have a branded link to the official web page and have the js in that page open the original Playstore/Appstore page.

4m agoHN ↗

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