Skip to content

getDeviceName unable to decipher Android user agent #8151

@MueezAllie

Description

@MueezAllie

I'm having an issue where the "matomo/device-detector": "^6.4" is provides an empty result when running getDeviceName() on an android user agent. An example of the user agent is Superbalist/3.50.0(com.superbalist.android;329;Android;10;API29)

However, it is able to provide a non-empty result when running a similar user agent but for Huawei devices which looks like the following:
Superbalist/3.50.0-huawei(com.superbalist.huawei;329;Android;12;API31)

The result I'm expecting to be returned from getDeviceName() for both Android and Huawei on the examples provided is smartphone

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