checkForFirmwareUpdateAsync find update also when there isn't
in iOS
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
}
}
This discussion has been closed.
Comments
checkForFirmwareUpdate
does not return a bool in v2.10.0. See the release notes: