AndroidDeviceNames
AndroidDeviceNames copied to clipboard
Trouble fetching device market names
I'm having trouble fetching some market names of the phones where the model is returned When I view the raw JSON it shows that the market_name exists but in code it comes off same as the model.
{
"manufacturer": "Xiaomi",
"market_name": "HM Note 2",
"codename": "hermes",
"model": "Redmi Note 2"
}
eg
DeviceName.with(this).request { info, error ->
val manufacturer = info.manufacturer
val name = info.marketName
val model = info.model
val codename = info.codename
val deviceName = info.name
Here, the name returns Redmi Note 2
(should return HM Note 2
) and model also returns Redmi Note 2
It looks like both QUBO
and Xiaomi
have a device with the codename hermes
. However, I don't see Redmi Note 2
used as a market_name
anywhere. Are you sure you using the marketName
and not the model
?