Similar to this https://community.spotify.com/t5/Desktop-Windows/I-have-full-internet-connection-but-it-says-I-m-offline/td-p/42499/highlight/false
I've this problem often with
Sony Experia Z3 Mini
Sony Experia Z5 Mini
It says often I'm offline, even while it#s streaming music, all other App on the phone are working and have no issues.