For those familiar with working on iOS web applications, it's known that Apple's policy causes Chrome and other mobile browsers on iOS to use an outdated javascript engine. Because of this, we need to disable certain rendering for Chrome and other non-Safari browsers on iOS.
I came across this question but unfortunately, there was no helpful answer. Here are some approaches I tried (unsuccessfully):
First, I attempted to use
is_iOS = navigator.userAgent.match(/(iPad|iPhone|iPod)/g)
to detect if the browser is on iOS. Then, I used:
is_FF = navigator.userAgent.match(/(firefox)/g)
and is_Chrome = navigator.userAgent.match(/(chrome)/g)
to target and disable Firefox and Chrome browsers.
Upon realizing that all browsers share the same user agent string as iOS Safari, I speculated that a JavaScript function could be created to identify only Safari and differentiate it from other browsers.