AndroidDeviceNames icon indicating copy to clipboard operation
AndroidDeviceNames copied to clipboard

Trouble fetching device market names

Open Zishan3165 opened this issue 6 years ago • 1 comments

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

Zishan3165 avatar Apr 09 '18 14:04 Zishan3165

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?

jaredrummler avatar Jan 15 '19 23:01 jaredrummler