I am using NWPathMonitor(https://developer.apple.com/documentation/network/nwpathmonitor) to detect any network changes in my background process. I have noticed recently that ev