How does the Qibla compass work? It reads your device's location and compass sensor, then points the Kaaba marker toward Mecca. Allow location and motion access, hold your phone flat, and calibrate by moving it in a figure-8.