We recently added a check for native Samsung browsers to disable input formatting entirely. Unfortunately, the user agent we check only applies to newer Samsung devices and we're missing old versions.
The useragent we're currently checking:
Mozilla/5.0 (Linux; Android 5.0.1; SAMSUNG SPH-L720T Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.1 Chrome/34.0.1847.76 Mobile Safari/537.36
The useragent for old versions of Samsung
Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; Samsung Galaxy Note 2 - 4.2.2 - API 17 - 720x1280 Build/JDQ39E) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
This check adds some additional logic for the isSamsungBrowser check. If the original check returns false, it does a second check to see if the user agent does not contain the word Chrome (since newer versions of Samsung browsers using Google Chrome will have Samsung in the user agent) and does contain the word Samsung.
Originally reported at https://github.com/braintree/braintree-web/issues/265
We recently added a check for native Samsung browsers to disable input formatting entirely. Unfortunately, the user agent we check only applies to newer Samsung devices and we're missing old versions.
The useragent we're currently checking:
The useragent for old versions of Samsung
This check adds some additional logic for the
isSamsungBrowser
check. If the original check returns false, it does a second check to see if the user agent does not contain the wordChrome
(since newer versions of Samsung browsers using Google Chrome will have Samsung in the user agent) and does contain the word Samsung.