Backendless.shared.userService.isValidUserToken does not return an error when internet is not available

Backendless Version (3.x / 5.x, Online / Managed / Pro )

5.7.2

Client SDK (REST / Android / Objective-C / Swift / JS )

Swift

Expected Behavior

If there is no internet Backendless.shared.userService.isValidUserToken should return an error.

Please describe the expected behavior of the issue, starting from the first action.

  1. Calling Backendless.shared.userService.isValidUserToken without internet.
  2. errorHandler gets called.

Actual Behavior

Backendless.shared.userService.isValidUserToken without internet is not calling responseHandler or errorHandler.

SDK source code shows that isValidUserToken is not returning anything if response.data is nil. I guess it should return an error.

Thanks!

Hello,

Thank you for reporting this issue.

I opened an internal ticket to investigate the problem (BKNDLSS-20454). We will let you know when the problem is resolved.

Regards,
Mark

Hello,

Issue has been fixed in Swift-SDK v 5.7.3.

Regards,
Olha

Hi,

Thank you, the fix in 5.7.3 resolved my issue!