Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable Capture platform deatils using User Agent in Spring Boot for in Some Mobile Device #13

Open
unaveen opened this issue Jan 2, 2023 · 0 comments

Comments

@unaveen
Copy link

unaveen commented Jan 2, 2023

I'm facing an issue with capturing device details for Xiaomi phones using the user agent.

using the following user agent:
Mozilla/5.0 (Linux; Android 12; 2109119DI) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36

I have followed the following link: https://github.com/mngsk/device-detector

My code is like:

   `` DeviceDetector dd = new DeviceDetectorBuilder().build();
    Detection detection = dd.detect(userAgent);
    System.out.println(detection.getDevice());``

in this I'm getting null value for the device, the model,brand

{ "model": null, "type": "smartphone", "brand": null }

Expected Output is:
{ id: "XI", type: "smartphone", brand: "Xiaomi", model: "Mi 11 Lite 5G NE" }

please help me to solve this issue

using Java Version: JDK11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@unaveen and others