Due to this spec from Vivo, we need to add a new method to get TAC identifier. This method will be available only in Android because we can't obtain this information in iOS.
As this information is available starting Android 10, we will return a null value if it's not available in that device.
The TAC identifier is the first 8 digits of the IMEI. We already have a method to get the IMEI but to obtain this value, we need carrier privileges permission which in many cases we don't have. To get the TAC we don't need any special permission because it only identifies the device model, not the device itself.
LGTM, but I'd rename it to getDeviceTac. I know we use request prefix for requestDeviceImei, but most of the bridge methods have the getXXX naming convention.
Due to this spec from Vivo, we need to add a new method to get TAC identifier. This method will be available only in Android because we can't obtain this information in iOS.
As this information is available starting Android 10, we will return a
null
value if it's not available in that device.The TAC identifier is the first 8 digits of the IMEI. We already have a method to get the IMEI but to obtain this value, we need carrier privileges permission which in many cases we don't have. To get the TAC we don't need any special permission because it only identifies the device model, not the device itself.
Get TAC identifier