What are possible failures when using CLLocationUpdate.Updates AsyncSequence

Hello,

I'm currently migrating my app location service to use the new CLLocationUpdate.Updates.

I'm trying to understand what can fail in this AsyncSequence. Based on the previous CLError, I thought authorisation was one of them for example but it turns out that this is handled by the CLLocationUpdate where we can check different properties.

So, is there a list of errors available somewhere?

Thanks Axel, @alpennec

The list of conditions you can get from CLLocationUpdate are listed at CLLocationUpdate

Unfortunately explanations about them are a bit lacking, but the same list from CLMonitoringEvent, which is mostly common between the two, seems to be better documented at CLMonitoringEvent


Argun Tekant /  DTS Engineer / Core Technologies

Thanks @Engineer for sharing that.

My first post was maybe not clear because I‘m looking for errors that can be thrown when we use the AsyncSequence, not the properties of a CLLocationUpdate.

do {
    for try await update in CLLocationUpdate.liveUpdates() {

    }
} catch {
    // what are possible errors here?
}
What are possible failures when using CLLocationUpdate.Updates AsyncSequence
 
 
Q