A serial domestic abuser has been jailed after breaching a restraining order by messaging his former partner on WhatsApp.