ICEmobile
  1. ICEmobile
  2. MOBI-106

ICEmobile User-Agent not stable on iOS

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Beta
    • Fix Version/s: 1.0 Beta
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEmobile

      Description

      initial requests are made with

      User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A334

      whereas subsequent requests are made with

      User-Agent: ICEmobile/1.0.0 CFNetwork/548.0.3 Darwin/11.0.0

      This affects server-side device detection and rendering.

        Activity

        Hide
        Ted Goddard added a comment -

        It is not possible to configure the User-Agent for iPhone WebKit. Further, the Android client behaves similarly for some requests:

        User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)

        Show
        Ted Goddard added a comment - It is not possible to configure the User-Agent for iPhone WebKit. Further, the Android client behaves similarly for some requests: User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)
        Hide
        Ted Goddard added a comment -

        The strategy used to solve this is to cache the first valid User-Agent in the session: both iPhone and Android clients are observed to use detailed User-Agent headers on their initial requests. Once a User-Agent containing "Mozilla" has been encountered, it will be used for all subsequent detection.

        Show
        Ted Goddard added a comment - The strategy used to solve this is to cache the first valid User-Agent in the session: both iPhone and Android clients are observed to use detailed User-Agent headers on their initial requests. Once a User-Agent containing "Mozilla" has been encountered, it will be used for all subsequent detection.
        Hide
        Ted Goddard added a comment -

        Server-side caches valid User-Agent strings.

        Show
        Ted Goddard added a comment - Server-side caches valid User-Agent strings.

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: