If a husband and a wife have a long distance marriage, and they’re both having desires they can’t fulfill because of the distance.
Is it permissible for her to buy simulating underwear that he can activate through his phone, as he wills? Or does that fall under the masturbation category?

This is not allowed. Try to find away of visiting each other.