Can the DeviceCheck API generate a token when the device is offline?
if DCDevice.curDevice.isSupported {
DCDevice.current.generateToken(completionHandler: { (data, error) in
if let tokenData = data {
print("Received token \(tokenData)")
}
else {
print("Hit error: \(error!.localizedDescription)")
}
})
}
Device token can be received in offline mode too.