It’s okay to apologize by text, but it’s better to deliver an apology in person or write a formal apology. It takes more time and effort to apologize in one of these ways, which demonstrates your sincerity and the importance that you ascribe to your relationship with the other person.