I'm trying to build a Swift application that saves the SSIDs and the time of connection to all networks encountered throughout the day (obviously, networks to which I already have access). The problem is that my application only works in the foreground, and I have no idea how to make it work in the background, if possible. Currently, I'm using NEHotspotNetwork.fetchCurrent().
I've already tried using Background Tasks, but without success.