New method to get TAC identifiers
jeslat opened this issue · 0 comments
jeslat commented
Due to this spec, we need to add a new method to get TAC identifiers.
The proposal is to create a new method that returns the information about the SIM slots including the TAC and the IMEI (if they are available) and deprecates the current requestDeviceImei
method.
Request SIM slots info
requestSimSlotsInfo: () => Promise<Array<{tac: string | null, imei: string | null}>>
Request → {type: "SIM_SLOTS_INFO", id: string}
Response → {type: "SIM_SLOTS_INFO", id: string, payload: {Array<{tac?: “1234” imei?: “123456789”}>}}
The reason to have both params as nullable is that in some cases we can access one or both of them depending on the API version and the carrier privileges.
We will return an empty array if we can't access this information.
This method will be available only on Android.