I
I
Ilya2017-02-03 13:56:17
Google Chrome
Ilya, 2017-02-03 13:56:17

How to get unique device id in chrome extension?

How can I get the device name or other unique information for this device (unique id, etc.) on which chrome is running in the chrome extension? The extension connects to the server and I need to somehow identify which device is connected.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AnjeyTsibylskij, 2017-02-03
@Mr_Epic

You can get UserAgent / browser name / browser version, etc. but this is all very bad for user identification. he can change this data at any time . It is much easier to do this by generating a unique key in the extension (at least a simple md5).
How it looks in practice. The user installs the extension, the key is generated and stored, for example, in localStorage or chrome.storage . Then you can send all requests to the server using this key as the signing identifier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question