Advice please 😩

So it seems like my boyfriend has a serious problem. Every day he says he's coming to spend time with me and he doesn't. He either texts saying he's going to his friends, or doing something for his friend and he will be right back. Or he will come for 5 minutes to let me know he's going to his friends and he will be back at a certain time, but never once does he come back. The first place he goes every day is his friends house and ends up staying all day. Some times all night. I can't remember the last time we spent more than 5 minutes together. I find it soo unfair how I'm sitting here heavily pregnant, feeling upset and hormonal as it is, just wanting him to come and spend time with me while he's out having fun with his friends. It's like I'm not important to him at all. He makes sure he sees his friends literally every day but can never make time for me. Today he has done it again and I'm so over it I'm planning to talk to him tonight. I just don't know what to say. We've had so many arguments about it and of course he says it's going to change but it never does. Do I give him an ultimatum or just give up and end things? Literally exhausted of begging him to spend more time with me.. it shouldn't have to be like that..