DE version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
60% Positive
Analyzed from 304 words in the discussion.
Trending Topics
#app#https#slyp#useragent#com#user#window#apps#page#indexof

Discussion (9 Comments)Read Original on HackerNews
Just have a branded link (like https://slyp.app/Slyp or 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.
TL;DR: it is HTTP redirect based on User-Agent header