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

[IOPID-1714] handle malformed response on iOS #51

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

shadowsheep1
Copy link
Member

@shadowsheep1 shadowsheep1 commented Apr 2, 2024

Warning

This PR depends on pagopa/io-cie-ios-sdk#10

This PR handle malformed responses to avoid crashes on iOS devices in those use cases.

List of changes

  • Update the iOS framework coming from here.

Copy link

github-actions bot commented Apr 2, 2024

Jira Pull Request Link

This Pull Request refers to the following Jira issue IOPID-1714

@shadowsheep1 shadowsheep1 marked this pull request as ready for review April 2, 2024 16:17
@shadowsheep1 shadowsheep1 requested a review from a team as a code owner April 2, 2024 16:17
@shadowsheep1 shadowsheep1 self-assigned this Apr 2, 2024
Copy link

@Vangaorth Vangaorth left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

dpulls bot commented Apr 4, 2024

🎉 All dependencies have been resolved !

@shadowsheep1 shadowsheep1 merged commit a7ecf9a into master Apr 4, 2024
4 checks passed
@shadowsheep1 shadowsheep1 deleted the IOPID-1714-cie-crash-ios branch April 4, 2024 07:18
@shadowsheep1 shadowsheep1 restored the IOPID-1714-cie-crash-ios branch April 4, 2024 07:19
shadowsheep1 added a commit to pagopa/io-app that referenced this pull request Apr 4, 2024
## Short description
> [!Warning]
> This PR depends on pagopa/io-cie-sdk#51

> [!Important]
> The misleading copy on the error page under the NFC Session Manager is
not a subject of this PR.

> [!Tip]
> Translations ✅


This PR update the `io-cie-sdk` library to handle malformed responses to
avoid crashes on iOS devices in those use cases.

<details><summary>demo</summary>
<p>

| Generic error on iOS NFC Session Manager Alert |
| - |
| <video
src="https://github.com/pagopa/io-app/assets/16268789/22d3ba0b-d1a4-46c9-aeaf-9eac1f7cdd5c"
/> |

</p>
</details> 

## List of changes proposed in this pull request
- Fix UI regression in `LoadingSpinnerOverlay`.
- Add a generic error message in case of malformed URLs.

## How to test
Run the app in production with a real iOS device and try to login with
EIC several times. No crash'd happen.

---------

Co-authored-by: mariateresaventura <90319761+mariateresaventura@users.noreply.github.com>
Co-authored-by: Mario Perrotta <mario.perrotta@pagopa.it>
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