??? This is way too complex! Polaris, the North Star is no more than one degree from true north. Find Polaris and you are looking north. End of problem. This has been common knowledge before smart phones, much less the apps you could load on them... Other stars are fixed in place, and with a reasonable amount of observation, serve equally well.
C'mon, that's just subtracting two numbers

I'd like to see you finding Polaris at noon

(if you are not at the North Pole in winter). Or when you are in the South America...