How to make one reference to the transition she was determined to google play or the App Store?

I have SMS on the phone, there was the same link, only one with some sort of domain, when you click on it, I immediately translate on the App Store if I go with the iPhone. If you go with Android from the link that throws in Google Play.
The question how to make such a link? Now I have an app on google play or App Store. I would like to generate a link to transition after I was transferred to need the Google Play store or App Store
July 2nd 19 at 14:13
2 answers
July 2nd 19 at 14:15
If we are talking about the website it is possible to determine the device type and generates the appropriate link
July 2nd 19 at 14:17
Using the same tracker.

Find more questions by tags Apple App StoreGoogle Play