Understand user agent detection behavior and notices
masterWhen using the package, keep the following behaviors in mind:
- Bots and Mobile: If a bot (like Googlebot) is detected using a mobile crawler, both
ua.Botandua.Mobilewill be set totrue. - Opera vs Opera Mini: These are treated as two distinct browsers because they operate differently.
- Unknown User Agents: The package uses a deterministic detection method. If a user agent string provides insufficient information,
ua.IsUnknown()will returntrue. Note that even if unknown, fields likeNameorOSmight still contain partial information. - Deterministic Detection: The package attempts to identify the agent even if the string does not follow common formats.