Ahem. . . I must rectify then: 100% of MY phones have a barometer!
Here I understand the difficulty of programming options depending on the hardware used.
This method is used by the Parrot Bebop 2:
Compatibility list for automatic tracking with altitude tracking:
iPhone 6S Plus, iPhone 6S, iPhone 6 Plus, iPhone 6, Samsung Galaxy S7, S6, S5 & S4, Samsung Galaxy S6 & S7 Note / Edge, HTC M8, Nexus 5 & 5X, Xperia Z5