Skip to content

Issue with detecting iPhone User-Agent as desktop #8

Description

@r6lik

Hi, first of all, thank you for this amazing library! It's been really helpful.

I encountered an issue with User-Agent detection. When the following User-Agent string is passed:

Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3.1 Mobile/20D67 Safari/604.1

The library incorrectly identifies it as a desktop browser, although it is clearly a request from an iPhone.

Is there a way to modify the library to correctly handle these cases and detect this as a mobile device instead?

Thank you for your help, and I look forward to any suggestions you might have!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions