Skip to content

Bot device detection is always DeviceComputer #51

@thomas-schwebel

Description

@thomas-schwebel

Hi,

We've noticed that when the User-Agent is detected as bot is it always set as device type DeviceComputer.
This is not always correct. The GoogleBot for instance can crawl the page using different User-Agent for mobile or desktop.
See https://support.google.com/webmasters/answer/1061943?hl=en.
This library should reflect this when parsing a User-Agent. If the bot is crawling as a mobile phone it should be detected as DevicePhone.

I will submit a proposal as PR for fixing this.

Cheers,
Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions