Most the time when I open the Sonos app, it says cannot connect to Sonos. If I leave it for about a minute it connects of its own accord. Same if trying to connect through Sonos.
My first thought is the Sonos speakers’ addresses on the network may be changing. So when you start the Sonos app, it looks at the last address it had for the main Sonos speaker* (192.168.0.5, say), and can’t find it there. The delay is it then working out where that Sonos speaker is, and from there connecting to all the others.
A while ago I gave all my Sonos speakers fixed addresses on the network (most – one just refuses to stick to it) and generally haven’t had issues since then.
But as above, this has been a long-running issue with the Sonos app, most annoying when the app is open and playing something and *then* goes “where… uh… oh, can’t connect to the speakers”. And Sonos’s response is classic tech victim-blaming ‘it’s your wifi mate’, as if you have some particularly obscure setup with one router from Russia, one from 1993 and another running backwards, rather than just an average network in an average house.
They do seem at least to have stopped “updating” it with new bugs quite so frequently though.
*my understanding is that the Sonos ‘network’ operates through your wifi, but that one Sonos speaker tends to coordinate the others. You can generally work out which one it is by unplugging one Sonos and seeing if the rest still work; if you unplug one and the Sonos is suddenly unable to find any other Sonos on the network, that was the one it was using to connect to the others.