checkForFirmwareUpdateAsync find update also when there isn't

Hi, if I use checkForFirmwareUpdateAsync() in my app it results every time "1", but if I use in sample app it results "0" (and this is the right result). What's my error?

My code is

device.checkForFirmwareUpdateAsync().success { result in

var update: String

update = result.boolValue ? "AVAILABLE!" : "Up To Date"

if update == "AVAILABLE!" {

print("AVAILABLE")

//other code

} else {

//other code

}

}

Comments

This discussion has been closed.