Skip to content

iPad Air and iPad Pro - type not correctly identified #690

Description

@dann2g

Library version
v1.0.37

Describe the bug
iPad Pro and iPad Air user agents from Chrome Dev Tools are not recognized as tablets. Mentioning Chrome Dev Tools here as I can't rule out Chrome using incorrect user agents.

To Reproduce
Steps to reproduce the behavior:

  1. Open Chrome Dev Tools --> Device Toolbar
  2. Select iPad Air or iPad Pro from list
  3. Visit webpage that uses ua-parser-js
  4. device is returned as { vendor: 'Apple', model: 'Macintosh', type: undefined }

Alternatively use one of these user agents which is what my Chrome (Version 119.0.6045.124) is using:

  • iPad Air - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15
  • iPad Pro - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15

Expected behavior
device returned as { vendor: 'Apple', model: 'iPad', type: 'tablet' }

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