1

我想创建一个 Google Sites 脚本,它可以检测我的访问者是使用 Android 还是 iOS,然后将他们相应地重定向到 AppStore 或 Google Play。这将允许我只为所有设备宣传一个二维码。有没有办法轻松设置它并将其托管在 Google 协作平台上?

4

1 回答 1

1

Well the script needs to inspect the HTTP_USER_AGENT header, and do something like this: Common link to open iOS, Android and BlackBerry app

Bear in mind that not everyone on an Android-based device has the Google Play store (e.g. Kindle Fire -> Amazon Appstore); unfortunately getting the user to an appropriate app store on Android is tricky because there are many options.

于 2012-10-16T14:48:01.850 回答