Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

lazarvelickovic
Copy link

@lazarvelickovic lazarvelickovic commented May 29, 2023

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
Copy link
Member

@sbakic sbakic left a comment

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
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
2 participants