Enable location permission
To set the compass, please keep your phone clear off any magnetic objects.
Then gently rotate your phone front and back, then left side and right side.
You may need to repeat those instructions until the compass is set.
Then open the Qibla finder in the app and see whether the top left of the screen is red or green, in the event it is red, please steer off any magnets and repeat the abovementioned steps.
You can also find Qibla according to the sun’s location in the morning or the moon’s in the evening.