I recently started to write my own Album Browser for the Iphone and came across this error on the device. If you try to access the user's media they will see a prompt asking ""Application" Would like to Use your Current Location..."
if this request is refused then the application stores that they have refused it. Therefore every time after that when you try to access the devices media you will get the following error:
"Error: CLClientInvalidate could not send unregistration request to daemon"
The simple way to handle this while testing is to go into Settings>General>Reset>Reset Location Warnings.
That will allow your application to access the users media again.
Of course this is no fix for your application but at least it will allow you to continue working.
I will post a more user friendly solution to this as soon as i find one.
Update:: You can test for services before attempting to access them and prompt the user to change the applications settings.
- if ([CLLocationManager locationServicesEnabled] &&
- [CLLocationManager authorizationStatus] == kCLAuthorizationStatusAuthorized )
- //Do ALAssetLibrary work here...
- UIAlertView *alert = [[UIAlertView alloc] initWithTitle:
- NSLocalizedString( @"Please Enable Location Service's", @"Please Enable Location Service's" )
- message: NSLocalizedString( @"Message", @"Message" )
- delegate: self
- cancelButtonTitle: NSLocalizedString( @"Close", @"Close" )
- otherButtonTitles: nil];
- [alert show];