What causes (and how can I fix) this odd Core Location error?

后端 未结 7 1581
太阳男子
太阳男子 2021-02-05 12:42

ERROR,Generic,Time,320195751.128,Function,\"void CLClientHandleRegistrationTimerExpiry(__CFRunLoopTimer*, void*)\",Registration timer expired, but client is

7条回答
  •  不思量自难忘°
    2021-02-05 13:17

    Have you implemented

    - (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error 
    

    and does this catch it?

    You need to check for kCLErrorNetwork, kCLErrorDenied, kCLErrorHeadingFailure and kCLErrorLocationUnknown in the normal run of things but I'm wondering if there are other errors that the delegate can still catch?

    This could give you the opportunity to stop and then restart location services.

提交回复
热议问题