A phone compass is a magnetometer: metal, speakers, cases and cars pull it off. Turn the phone in a slow figure of eight to settle it, and check it against the sun before you rely on it. The bearing itself is exact — only the compass needle is a guess.