I personally was getting this error despite I’ve been already logged in with my Apple ID on my Iphone. The only thing that helped to get rid of this error was providing the ‘Settings’ app with access to WLAN and Mobile Data in: Settings -> WLAN -> Apps using WLAN & Mobile Data