Timeline for Detect if device is iOS
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2022 at 14:38 | comment | added | Kevin Oswaldo | 'platform' is deprecated | |
May 20, 2022 at 14:10 | comment | added | Ronni DC |
Using the const in @JefferyTo's example above worked well for me with this conditional check: if (isIOS === true ) { //stuff for iOS } else {// stuff for all other }
|
|
Nov 2, 2021 at 10:44 | comment | added | Jeffery To | @strix25 are you sure you typed the code correctly? | |
Nov 2, 2021 at 10:43 | comment | added | Jeffery To | @IBG I just tried this on Firefox 38.1 on iPhone (iOS 14.3) and Chrome 95.0.4638.50 on iPad (iPadOS 15.0.2) and it worked on both | |
Nov 2, 2021 at 10:29 | comment | added | strix25 | @IBG just tried and it returns "undefined" on iOs chrome. So this answer is not correct | |
Oct 20, 2021 at 10:47 | comment | added | IBG | What if the browser is chrome? | |
Jun 18, 2021 at 9:45 | history | answered | Jeffery To | CC BY-SA 4.0 |