‹ BackHN Continuity

Thread

QR codes that route to the appropriate app store

18 points · 9 comments · matthuggins

Loading the complete thread in the background. This saved snapshot is available now. Refresh

  1. Tiberium · · focus · HN ↗
    Is this a whole blog post for a simple backend that just routes based on the User-Agent?
    1. ericpauley · · focus · HN ↗
      Believe it or not there are entire companies that are (to simplify, of course) just that: <a href="https:&#x2F;&#x2F;www.adjust.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.adjust.com&#x2F;
    2. matthuggins · · focus · HN ↗
      Yep, that&#x27;s what it is.
  2. Svoka · · focus · HN ↗
    I thought it was something clever, but it shows as URL which redirects from browser to App Store, after two several tabs.

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

  3. arccy · · focus · HN ↗
    it&#x27;s just a server side redirect based on the user agent headers
  4. m4tthumphrey · · focus · HN ↗
    Err wut... redirecting based on user agents?
  5. MengerSponge · · focus · HN ↗
    I hate QR codes. I don&#x27;t trust them.
    1. _imnothere · · focus · HN ↗
      Use a standalone app to scan it, inspect the URL before open, easy as that.
      1. MengerSponge · · focus · HN ↗
        But you see how that sucks, right?
  6. elendilm · · focus · HN ↗
    For our apps Slyp and SlypBusiness, we had the same QR code for each app open Playstore&#x2F;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&#x2F;Appstore page.

  7. classictraffic · · focus · HN ↗
    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&#x27;t specify iPad in user agent headers
  8. sophie2003 · · focus · HN ↗

    [dead]

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.