no. the user agent while not reliable it is the only way. see:
for layout, responsive design has replaced device detection.
note: asp.net used to support device detection via the user agent, but gave up on keeping it current.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, I'm currently working on .net core web API project . There is a moment that I can't figure out. I had to detect the device which user used when signed in. I used "user-agent" first but this only says if its smartphone, Desktop etc. And only on Apple products says that it is Iphone or Mac air and so on. Is there better way to detect device?
no. the user agent while not reliable it is the only way. see:
for layout, responsive design has replaced device detection.
note: asp.net used to support device detection via the user agent, but gave up on keeping it current.
Is there better way to detect device?
Can the User-Agent Client Hints provide some of required information?
https://learn.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11