How should we implement the didChangeAuthorization status method?
Harun Selek

Hi, thank you for the kind words.

I didn’t address this topic in the article for length reasons.

The way to use the didChangeAuthorization method (which is optional) is to implement it on our CLLocationManagerDelegate, for example you can show an alert asking the user to enable the Location Authorization for your app again, or, if the user just enabled the app (again), we can subtly start updating the user location right away.

You can write something like:

Where the app behavior will be different whether the authorization changed from enabled to not enable or vice versa.

In the Compass app you’d add this method in LocationDelegate Class here.

I hope this helps! :)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.