For the website, we want to show the link in the play store if the user has an Android 4+ device. All the browsers we tested sent the Android version number to their user-agent line, except for one: Firefox for Android. Firefox just sends this message:
Mozilla/5.0 (Android; Mobile; rv:19.0) Gecko/19.0 Firefox/19.0
and even with some JavaScript I cannot find any evidence for the version number:
<script language="JavaScript">
document.write(navigator.appVersion + "\n<br/>OS CPU: " + navigator.oscpu);
</script>
returns:
5.0 (Android)
OS CPU: Linux arm7l
Did I miss some other methods?
source
share