Home > front end >  The unique identification of vue can get cell phone?
The unique identification of vue can get cell phone?

Time:10-02

The unique identification of vue can get cell phone?

CodePudding user response:

Vue. Js is a js framework, is executed in the web page script language, have no access to the true machine data information,

CodePudding user response:

Access to the only identification number:
The Device ID
Unique device ID, such as IMEI of GSM network, CDMA network MEID/ESN may return null (a description of the API documentation)
Applies only to mobile devices, for the protection of the equipment is not in the mobile phone network will return null
Access to the Device ID value, even if the equipment factory default will not change
Need READ_PHONE_STATE permission
Some equipment Device ID buggy, returns 0 or *
TelephonyManager
Tm
=
TelephonyManager getSystemService (TELEPHONY_SERVICE);
The String
DeviceId
=
Tm. GetDeviceId ();
  • Related