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. Hopefully, we will start rolling out Slyp next week.
Just have a branded link (like <a href="https://slyp.app/Slyp" rel="nofollow">https://slyp.app/Slyp or <a href="https://slyp.app/SlypBusiness" rel="nofollow">https://slyp.app/SlypBusiness)
to the official web page and have the js in that page auto-redirect and open the original Playstore/Appstore page.
And yes, we used userAgent for identifying the platform.
If anyone is interested, here is the code. May not cover all edge cases but works for our usecase. The code was wrung together in a hurry a year ago.
elendilm · · focus · HN ↗
Just have a branded link (like <a href="https://slyp.app/Slyp" rel="nofollow">https://slyp.app/Slyp or <a href="https://slyp.app/SlypBusiness" rel="nofollow">https://slyp.app/SlypBusiness) to the official web page and have the js in that page auto-redirect and open the original Playstore/Appstore page.
And yes, we used userAgent for identifying the platform.
If anyone is interested, here is the code. May not cover all edge cases but works for our usecase. The code was wrung together in a hurry a year ago.