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(Android): Detect offline on app startup #636

Merged
merged 3 commits into from
Jan 10, 2025
Merged

Conversation

BrandonTR
Copy link
Contributor

@BrandonTR BrandonTR commented Jan 9, 2025

Summary

Ticket: 🤖 | Error States | Offline behavior

Fixes offline detection on app startup. The previously implemented detection does work if connectivity status changes while app is already running.

iOS
- [ ] If you added any user-facing strings on iOS, are they included in Localizable.xcstrings?
- [ ] Add temporary machine translations, marked "Needs Review"

android
- [ ] All user-facing strings added to strings resource
- [ ] Expensive calculations are run in withContext(Dispatchers.Default) where possible

Testing

Manual testing, briefly looked into unit testing but ran into problems mocking Context.

@BrandonTR BrandonTR requested a review from a team as a code owner January 9, 2025 17:37
@BrandonTR BrandonTR requested a review from EmmaSimon January 9, 2025 17:37
@BrandonTR BrandonTR merged commit 97c55e1 into main Jan 10, 2025
5 checks passed
@BrandonTR BrandonTR deleted the br-offline-behavior branch January 10, 2025 19:54
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