Are you sure there IS a compass on your phone (i.e., is there a magnetic sensor on it)? For example, on my Leagoo T5c, there's no magnetic sensor, so no compass either.
Ok, glad you got it working! These various sites that have device specs aren't always accurate -- I wish the manufacturers would maintain official pages for their phones with detailed specs...