locked
User Agent for Iphone 6 RRS feed

  • Question

  • User-1021989441 posted

    Looking for the user agent for the Iphone 6 so that I can replace my code bellow. I want to be able to distinguish between an IPhone and an Iphone 6...

     // Check for IOS
                if (ua.Contains("ios") || ua.Contains("iphone") || ua.Contains("ipad") || ua.Contains("ipod"))
                {
                    return View();
                }

    Friday, March 20, 2015 1:56 PM

Answers

  • User2103319870 posted

    I want to be able to distinguish between an IPhone and an Iphone 6...

    You can try with the below User agent string

    Apple-iPhone7C2/1202.466

    Reference URL to complete UserAgent string

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 20, 2015 2:07 PM

All replies

  • User2103319870 posted

    I want to be able to distinguish between an IPhone and an Iphone 6...

    You can try with the below User agent string

    Apple-iPhone7C2/1202.466

    Reference URL to complete UserAgent string

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 20, 2015 2:07 PM
  • User71929859 posted

    yguyon

    Looking for the user agent for the Iphone 6

    Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.3 (KHTML, like Gecko) Version/8.0 Mobile/12A4345d Safari/600.1.4

    Note: You can get the user string by going to the developer tools of Chrome and emulate iPhone 6. On the top, you will see UA (User Agent).

    Sunday, March 29, 2015 6:27 PM