
0
Javascript to detect operating system and insert app store link
I have a client that would like automatic OS detection and automatically insert the correct app store link (iOS or Android). Is this possible? Would anyone like to share the code? Thanks :)
Javascript doesnt work in emails. Nearest I could find was this:
https://codepen.io/jeffclayton/pen/cbCsi or
https://jeffclayton.wordpress.com/2015/02/01/css-os-platform-specific-hacks/
Both are buggy so your best bet will be to add both and let the user choose.
I am afraid there is not a clean solution for this.
If u use PHP u could not insert a link but u would be blocking the other image wich is for example googlaPlay. That way the links is still the but becouse it has noting in it it will be 0px width and high. But did not find this kidn of thing online, further mopre u would need to find out how u can detect if the image is opened from a apple device
A css aprouch would be if u use media querys that only work if u on a iOS device. But again this would only work if the user is using a pple based emailclinet or app.
Hi Christy,
to echo the above, emails do not support Javascript. Best performance is being provided to by Branch. https://branch.io/