Closed jfiser-paylocity closed 2 months ago
Thank you for reporting the issue @jfiser-paylocity
Apparently there're some issues with NWPathMonitor
on watchOS.
I tried looking for some simple mitigation, but unfortunately could make it work in the timely manner. We'll need to discuss this internally with the team and see how we can proceed.
We'll keep the GH Issue posted.
Hello @jfiser-paylocity 👋
We released version 2.17.0, which includes #2005. Thanks a lot for your contribution! 🙌 🚀
Describe the bug
When datadog is used on a real Apple Watch device, no logs are ever uploaded to API. The issue is that
NWPathMonitor
is used to evaluate network reachability. While this works flawlessly on a simulator (as it reads macOS status instead), it always reports as unreachable on a real device. That leads toDataUploadConditions
blocking every data upload attempt.Reproduction steps
Integrate datadog in any watchOS application and run on a real Apple Watch device.
SDK logs
No visible logs in the watchOS application.
Expected behavior
Logs are eventually uploaded to API and visible on Datadog dashboard
Affected SDK versions
2.15.0
Latest working SDK version
none
Did you confirm if the latest SDK version fixes the bug?
Yes
Integration Methods
SPM
Xcode Version
15.4
Swift Version
5.10
MacOS Version
Sonoma 14.6.1
Deployment Target
watchOS 9.0
Device Information
No response
Other relevant information
No response