MVC C# get device unique Id or IMEI Number

Anonymous
2022-01-14T05:27:00.523+00:00

Hi

how to get Mobile device Unique Device id or IMEI for iPhone/Android/Windows/iPad or any device in asp.net C# MVC.

as per requirement if i browse any web application through mobile device then will save Unique ID or IMEI in database for access particular device for web application.

Thanks,

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,553 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,481 questions
0 comments No comments
{count} votes

Accepted answer
  1. Zhi Lv - MSFT 32,326 Reputation points Microsoft Vendor
    2022-01-14T07:35:53.84+00:00

    Hi anonymous user,

    You can't get device unique IDs or IMEI Number via the web application for security reasons. The browser cannot access the unique IDs/IMEI number.

    You might need to write a native app that is installed on the device to get the IMEI number.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Dillion


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.