Where an aircraft is required to have Enhanced Mode S in Europe, the magnetic heading is a mandatory part of the data set which is downlinked.
ADS-B is of course not mandatory in Europe and nor are all aircraft covered by the Enhanced Mode S mandate, so some aircraft will indeed not transmit their magnetic heading. For those who must have it, then there is no choice but to have the capability to transmit magnetic heading.