This is how I'm asking the data
Telephony().then((resolved) => { if (resolved.deviceId) { this.logged.code = resolved.deviceId; resolve(); } else { reject(); } }).catch((error) => { reject(error); });
Version of plugin:
'"nativescript-telephony": "^1.0.4",'
After using this plugin for more than a year, I'm now having issues to get the deviceID in an Android10 device.
This is the data sample I'm getting:
callState: "" carrierName: "T-Mobile" countryCode: "us" dataActivity: "" deviceId: "" deviceSoftwareVersion: "----" isNetworkRoaming: "" mcc: "310" mnc: "260" networkType: 13 phoneNumber: "+xxxxx" phoneType: 1 simOperator: "310260" simSerialNumber: "" simState: 5 subscriberId: "" __proto__: Object
This is how I'm asking the data
Telephony().then((resolved) => { if (resolved.deviceId) { this.logged.code = resolved.deviceId; resolve(); } else { reject(); } }).catch((error) => { reject(error); });
Version of plugin: '"nativescript-telephony": "^1.0.4",'