Skip to content

fix(ios): Add missing request error handling - #5

Merged
lazarvelickovic merged 1 commit into
7398-update-capacitor-to-v4from
ios-missing-request-error-handling
Jun 7, 2023
Merged

lazarvelickovic merged 1 commit into
7398-update-capacitor-to-v4from
ios-missing-request-error-handling

Conversation

@lazarvelickovic

@lazarvelickovic lazarvelickovic commented May 29, 2023

Copy link
Copy Markdown
Member

Why is this added for

capacitor-community#224

Copied solution from this PR:

capacitor-community#225

In our case, we need it on iOS when initializing the app and the device is offline at that moment, fetchChats method is triggered but this line is not triggered at all:

https://github.com/komed-health/frontend/blob/089bd98560ce0cc79b618f011a464a6939daf32d/src/app/Chat/Chat-Lobby/Shared/Services/chat-lobby.service.ts#L65

And because of that, we have a loading spinner in a chat lobby header even when the device is put back to online.

@lazarvelickovic
lazarvelickovic marked this pull request as ready for review May 30, 2023 16:03

@sbakic sbakic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Can we get the before and after videos?

@lazarvelickovic

Copy link
Copy Markdown
Member Author

Can we get the before and after videos?

BEFORE:

RPReplay_Final1686139154.MP4

AFTER:

RPReplay_Final1686139882.MP4

@lazarvelickovic
lazarvelickovic merged commit e883f42 into 7398-update-capacitor-to-v4 Jun 7, 2023
@lazarvelickovic
lazarvelickovic deleted the ios-missing-request-error-handling branch June 7, 2023 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants