HafizPrime
Features For Teachers Learn Blog Help About Download Free
Feature deep-dive

Qibla Compass
Find the Ka’bah from anywhere

Qibla Compass in the HafizPrime app

TL;DR: A compass pointing toward the Ka’bah in Makkah, using your device’s magnetometer and GPS. Works offline once calibrated. Simple, accurate, and ad-free.

HafizPrime Qibla Compass — direction to Kaaba

How it works

  • Uses your device’s built-in compass (magnetometer) and GPS coordinates.
  • Calculates the great-circle bearing from your location to the Ka’bah (21.4225°N, 39.8262°E).
  • Shows the direction with a clear arrow indicator and degree readout.
  • Works indoors with reduced accuracy (metal structures can affect the magnetometer).

Calibration

If the compass seems off, the app prompts you to calibrate by moving your phone in a figure-8 pattern. This resets the magnetometer. On most modern phones, calibration holds for weeks.

Offline mode

Once your GPS has been read at least once, the Qibla direction is cached. You can use it offline (e.g., on a plane with airplane mode) as long as you’re in roughly the same geographic area.

Why it’s in a hifz app

Many memorizers recite during travel — hotel rooms, airports, unfamiliar mosques. Having the Qibla direction available in the same app they use for hifz removes one more reason to open a different app and lose focus.

In the app

Home → Prayer tab → Qibla. Or via voice command: “Show Qibla.”

Related

Install HafizPrime

Add it to your home screen for quick access.