【发布时间】:2019-04-19 18:38:37
【问题描述】:
所以我们有一些用户订阅和发送的电子邮件。它们是 HTML 电子邮件,在(大多数)电子邮件客户端中看起来不错。但是一个问题是,如果您在手机上收到电子邮件,您会收到弹出通知,这些看起来有点垃圾。例如,电子邮件顶部有一个公司徽标,它出现在 iOS 上,它会在通知中包含“公司徽标”替代文本(至少在 Gmail 中是这样)。
另一个问题是,靠近电子邮件顶部的是一个登录链接,这很重要,因为我们希望鼓励人们登录,但是当它出现在手机的弹出通知中时会浪费空间。无论如何,您实际上无法从那里单击它!
是否有任何标签、属性或 CSS 可以控制在 iOS 和 Android 的通知中显示或不显示的内容?例如,如果你有类似的东西:
<div>
<img src="http://somedomain.com/mycompanylogo.png" alt="My Company"/>
</div>
<div>
<a href="http://somedomain.com/login">Click here to login!</a>
</div>
<div>
<h2>Important alert title</h2>
</div>
<div>
<!-- some important headline text that would be useful in the notification -->
</div>
<div>
<!-- some more detailed stuff which would be fine not appearing in the notification -->
</div>
有没有办法至少提示图像 alt 和“单击此处登录!”当用户收到我们的电子邮件时,应该是弹出通知中显示的内容的一部分吗?
【问题讨论】:
标签: android html ios css email