Search code examples
androidurlformattingqr-codefoursquare

Foursquare to QR Code


This is not too trivial, I am not looking for any code. I just want to know how to format a URL to when i scan its QR-code equivalent, it will open the Foursquare Venue IN APP, NOT THE BROWSER.

This is the venues browser URL: https://foursquare.com/v/thirsty-ernies-bar--grill/4e93838461afe52cf35aa69c and the QR code for it: http://qrcode.kaywa.com/img.php?s=8&d=https%3A%2F%2Ffoursquare.com%2Fv%2Fthirsty-ernies-bar--grill%2F4e93838461afe52cf35aa69c

What would I have to do for it to function like this:

http://mashable.com/2010/05/21/android-app-foursquare-checkins/

In his video, it actually opens up in the application, not just the browser.


Solution

  • You should use the link like:

    foursquare://venues/yourvenueID

    Where your venue ID is the row of numbers in the end of the original foursquare website venue address.

    For example in the

    'https://foursquare.com/v/RUSSIANCOMPANYNAMEHAPPYCODING/4d19f75f401db60ce632fea4'

    '4d19f75f401db60ce632fea4' is the ID.