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 ordert o work properly, so if your smartphone doesn’t support the compass function you won’t be able to use the Peak finder either.