If it’s an Android smartphone, please install this app and test whether the compass works here.
In case the compass doesn’t work here either, plase try to caibrate the compass. If that isn't possible either, your device doesn’t support the compass function.
For the older apps:
The peak finder needs this function in order to work properly, so if your smartphone doesn’t support the compass function you won’t be able to use the peak finder either.