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: also include NSURLErrorNotConnectedToInternet when setting configuration to offline #249

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

thedavidharris
Copy link
Contributor

@thedavidharris thedavidharris commented Dec 7, 2024

Summary

Considers NSURLErrorNotConnectedToInternet as another case to set the SDK into offline mode. We were seeing a lot of errors of this type retried. Would have expected NWPathMonitor to pick this up but seems there's some other case where this can still happen, and it probably belongs in this list too.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: No

@thedavidharris thedavidharris force-pushed the offline-retry-enhancement branch from 4725329 to 1b6626a Compare December 7, 2024 04:19
@thedavidharris thedavidharris changed the title fix: also include NSURLErrorNotConnectedToInternet as an error to set SDK to offline mode fix: also include NSURLErrorNotConnectedToInternet when setting configuration to offline Dec 7, 2024
Copy link
Collaborator

@crleona crleona left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @thedavidharris!

@crleona crleona merged commit 4efb6f4 into amplitude:main Dec 9, 2024
11 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 9, 2024
## [1.11.1](v1.11.0...v1.11.1) (2024-12-09)

### Bug Fixes

* also include NSURLErrorNotConnectedToInternet when setting configuration to offline ([#249](#249)) ([4efb6f4](4efb6f4))
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