diff --git a/Source/ARTJsonLikeEncoder.m b/Source/ARTJsonLikeEncoder.m index eb4adc1f5..7a6e78e7a 100644 --- a/Source/ARTJsonLikeEncoder.m +++ b/Source/ARTJsonLikeEncoder.m @@ -694,9 +694,11 @@ - (ARTDevicePushDetails *)devicePushDetailsFromDictionary:(NSDictionary *)input ARTDevicePushDetails *devicePushDetails = [[ARTDevicePushDetails alloc] init]; devicePushDetails.state = [input artString:@"state"]; - NSDictionary *errorReason = [input valueForKey:@"errorReason"]; + NSDictionary *errorReason = [input valueForKey:@"error"]; if (errorReason) { - devicePushDetails.errorReason = [ARTErrorInfo createWithCode:[[errorReason artNumber:@"code"] intValue] status:[[errorReason artNumber:@"statusCode"] intValue] message:[errorReason artString:@"message"]]; + devicePushDetails.errorReason = [ARTErrorInfo createWithCode:[[errorReason artNumber:@"code"] intValue] + status:[[errorReason artNumber:@"statusCode"] intValue] + message:[errorReason artString:@"message"]]; } devicePushDetails.recipient = [input valueForKey:@"recipient"];