Get a unique device ID in javascript
Okay, first for try to make pwa apps, and result isn't hard to me. so today i have case how to get unique id forom every devices. its work for auto login or make session devices. so let's go..
you just add
<script src="https://raw.githubusercontent.com/biggora/device-uuid/master/lib/device-uuid.min.js"></script>
and add this before </body>
<script>
var uuid = new DeviceUUID().get();
document.getElementById("uuid").innerHTML = uuid;
</script>
and
<div id="uuid"></div>
on you page
Join the conversation