one link to rule them all -- URL to redirect to right app store based on mobile device os

I want to find a service or URL that will redirect mobile users to the appropriate app store based on their device. 

So, if a user of mine tweets a url for my game, I want everyone reading that tweet to be able to go to the url, and be redirected to the actual app store buy page for the OS they’re running.  I basically want to remove all the steps in between, so the user clicks, and can instantly buy. 

The alternative now, is to send them to my website, with links to the different app stores there, but I’d rather send them strait to the right app store.

I know this is possible based on redirecting a regular pc running either MAC or Windows… I just haven’t found how to do it for mobile OS’s.  yet.

Anyone have a simple solution for this? I’d love a service that just does it for me, rather than having to code a webpage to do it.  like the tinyURL service or something.

one link to rule them all – URL to redirect to right app store based on mobile device os

On the web server where you are linking too, each request has a “Browser Agent” string that is part of the headers of the request.  You can use server side software like PHP to analyze  the string and redirect based on information in that string.

If you have access to your web server’s configurations, where you can do the redirects directly in the web server.

Rob

Yeah, I’ve found scripts to do this kind of thing, but the issue I’m having is how to know what to parse for.  All the examples I’ve found, are parsing to distinquish between windows and mac.  I don’t know what to parse for to distinguish between mobile and non mobile, and if mobile, iOS, and Android.  I don’t know what that browser agent string looks like for all these differences, or if it’s different at all.  My biggest concern is that android has a million strings to parse for, who knows. I can’t seem to find it.
 

I would suggest a google search, perhaps:  https://www.google.com/search?q=browser+agent+strings&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=sb

Rob

On the web server where you are linking too, each request has a “Browser Agent” string that is part of the headers of the request.  You can use server side software like PHP to analyze  the string and redirect based on information in that string.

If you have access to your web server’s configurations, where you can do the redirects directly in the web server.

Rob

Yeah, I’ve found scripts to do this kind of thing, but the issue I’m having is how to know what to parse for.  All the examples I’ve found, are parsing to distinquish between windows and mac.  I don’t know what to parse for to distinguish between mobile and non mobile, and if mobile, iOS, and Android.  I don’t know what that browser agent string looks like for all these differences, or if it’s different at all.  My biggest concern is that android has a million strings to parse for, who knows. I can’t seem to find it.
 

I would suggest a google search, perhaps:  https://www.google.com/search?q=browser+agent+strings&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=sb

Rob

It sounds like you are looking for this service http://onelink.to

It does exactly what you describe.

It sounds like you are looking for this service http://onelink.to

It does exactly what you describe.