I have the following problem, I have three versions of the firefox installer for android , la 57.0.1-i386
, 57.0.1-arm
and 57.0.1-ch64
, I have a site where I detect that the browser is firefox and if it is less than these versions, I propose to update. How javascript
can I know the technology of the mobile so that when I download the installer it is the technology used by that device?
PS: I don't have echo code, that's why I don't show you anything
To detect the browser architecture you must use
navigator.platform
In Firefox Mobile for Android the values can be, for example:
Linux i686
orLinux armv7l
To complement Marcos' answer, this can work even on an Android
WebView
, for this we add:or an alert
It is essential to enable the execution of
JavaScript
and also configure aWebChromeClient
to obtain the architecture information: