开发者

Can you use CSS to detect if your email HTML is rendering on an iOS vs Android device?

开发者 https://www.devze.com 2023-04-01 17:24 出处:网络
I need to show different links (regular url or iOS Custom URL Sc开发者_JS百科heme) in our email depending on if its being read on an android or iOS device. The workaround is to have a redirect link to

I need to show different links (regular url or iOS Custom URL Sc开发者_JS百科heme) in our email depending on if its being read on an android or iOS device. The workaround is to have a redirect link to figure it out by opening the browser and looking at the User Agent server side, but I'm trying to avoid that to have better user experience.


You can hack it a little by using CSS media queries. Consider that 90%+ of Android phones can be described with two different screen geometries, then maybe you can get a query that works most of the time.

0

精彩评论

暂无评论...
验证码 换一张
取 消