How to detect Android's version number in Firefox for Android?

后端 未结 1 1521
走了就别回头了
走了就别回头了 2021-02-10 02:53

For a website we want to show a link in the play store if the user comes with an Android 4+ device. All browsers we tested sent the version number of Android in their user-agent

1条回答
  •  忘了有多久
    2021-02-10 03:25

    Unfortunately, you cannot. See Bug 625238 - Add device info to User-Agent and the related Bug 807495 - User Agent does not include handset Device Model.

    In general, Mozilla has a policy of not adding User Agent (or HTTP header) information, and they currently have the opinion that developers do not need to know the running Android version.

    0 讨论(0)
提交回复
热议问题