【发布时间】:2019-05-31 00:43:30
【问题描述】:
我在 AMP(加速移动页面)中创建了一个网站。我想在 android 中显示一些内容,但在 iOS 中不显示。
有什么方法可以使用 AMP 检测 android 和 iOS?
【问题讨论】:
标签: amp-html browser-detection
我在 AMP(加速移动页面)中创建了一个网站。我想在 android 中显示一些内容,但在 iOS 中不显示。
有什么方法可以使用 AMP 检测 android 和 iOS?
【问题讨论】:
标签: amp-html browser-detection
您可以为此使用amp-access,您必须在authorization 中识别user-agent 并设置一个标志。 here 就是一个例子。在示例中,device-detection 检查设备是否为android,否则返回Iphone
【讨论】: