function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Matthew StroudMatthew Stroud 

Has anyone done a port of ua-parser?

I am looking for a good Apex implementation of User-Agent parsing.  I am surprised that no one has done an apex port of ua-parser on the official site.   https://github.com/ua-parser
JeffreyStevensJeffreyStevens
Okay - I'm trying to find out what ua-parser really is.

What is it?  What's it used for?
JeffreyStevensJeffreyStevens
Okay - I found what a user-agent is.

https://en.wikipedia.org/wiki/User_agent

Now - I'll watch to see if anybody has thoughts on Matthew's origional question...
Matthew StroudMatthew Stroud
It is a library to parse the user-agent string.  It gives a more reliable breakdown of browser, operating system, and device (mobile vs desktop).