$ cordova plugin add com.locamat.device
Cordova Plugin for Android to read the Mac Adress of the device and to login an given user with oauth via google account as described in this blogpost:
-->receives the current mac address, but be awere somethines you receive an error when the wifi is turned off or other issues. Dont trust the mac ;)
-->authenticate the current user of the device in "silent mode" so there isnt any popup from google to authenticate the user, but your app needs the "Get Accounts" permission. If you have this you can authenticate the user via oauth against google servers and you can use this to identify the user in your backend to store user data or something else.