amplitude / Amplitude-Swift

Native iOS/tvOS/macOS/watchOS SDK
MIT License
26 stars 20 forks source link

fix: set offline when receiving certain error responses #212

Closed crleona closed 3 weeks ago

crleona commented 4 weeks ago

Summary

When receiving certain connection related failures after a failed url request, set the SDK to offline mode. Any successful NWPathMonitor updates will allow us to reconnect. This prevents us from going in a retry loop.

Checklist

github-actions[bot] commented 3 weeks ago

:tada: This PR is included in version 1.8.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: