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

Fixed hangs on setting new deviceId on keychain using main thread #137

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

ArielDemarco
Copy link
Collaborator

Overview

This PR improves the DefaultKeychainInterface implementation by doing async keychain writes to prevent potential App Hangs.

Details

In particular, the setValue method is now asynchronous, moving potentially blocking Keychain write operations (e.g. SecItemAdd) off the Main Thread.
This change prevents UI freezes and improves overall app responsiveness when doing setup on the EmbraceIO SDK

@ArielDemarco ArielDemarco requested a review from a team as a code owner December 4, 2024 18:04
Copy link

github-actions bot commented Dec 4, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link

github-actions bot commented Dec 4, 2024

Warnings
⚠️ No CHANGELOG entry added.

Generated by 🚫 Danger Swift against 4bee340

@ArielDemarco ArielDemarco merged commit dbcf4b2 into main Dec 4, 2024
6 of 8 checks passed
@ArielDemarco ArielDemarco deleted the fix-hangs-on-accessing-keychain branch December 4, 2024 20:23
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