My bf is only nice in person


So I've been dating this guy on and off for two years (more on than off). We have communication issues. He never wants to talk. He used to be the sweetest.. now he's only nice and talks to me in person. No matter what kind of fun we had while we were together during the day, when I text him later that night, he gives one word answers or straight up ignores me. He's nice through text when he's about to ask for something though. I'm in love with him and I honestly thought he had the same feelings for me but I don't understand how he can treat me the way he does.

Does anyone have any tips on communication? I know that I can't make him talk or be nicer but I don't want to leave him.. he's my best and only friend and I really think we're meant to be.