Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6229001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:29:15+00:00 2026-05-24T09:29:15+00:00

I am using CLLocationManager to grab the location.Though I have GPS settings working on

  • 0

I am using CLLocationManager to grab the location.Though I have GPS settings working on my device, it shows the status popup randomly which is defined in didFailWithError

Error I am getting is,

Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error 0.)"

-(void) startGettingCurrentLocation {

    CLLocationManager *locationManager=[[CLLocationManager alloc] init];
    locationManager.delegate=self;
    locationManager.desiredAccuracy=kCLLocationAccuracyNearestTenMeters;

    [locationManager startUpdatingLocation];
}
- (void) locationManager:(CLLocationManager *) manager didFailWithError:(NSError *)error {

    [locatingAlert dismissWithClickedButtonIndex:0 animated:NO];

    UIAlertView *statusAlert;

    statusAlert =  [[UIAlertView alloc] initWithTitle:@"" message:@"In order to use this application properly, you need to allow use of the GPS." delegate:self cancelButtonTitle:nil otherButtonTitles:nil];
    [statusAlert addButtonWithTitle:@"OK"];
    [statusAlert show];

    //Set Default Coordinates it app not able to get location
    if (mainDelegate.currentLatitude == nil) {
        mainDelegate.currentLatitude = @"28.6317021";
    }

    if (mainDelegate.currentLongitude == nil) {
        mainDelegate.currentLongitude = @"-81.423110";
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:29:17+00:00Added an answer on May 24, 2026 at 9:29 am

    Just find out whats the error

    if([[error code] isEqualTo: kCLErrorLocationUnknown])
    {
       The location manager was unable to obtain a location value right now.
    }
    

    other error codes

    kCLErrorLocationUnknown
    
    The location manager was unable to obtain a location value right now.
    
    kCLErrorDenied
    
    Access to the location service was denied by the user.
    
    kCLErrorNetwork
    
    The network was unavailable or a network error occurred.
    
    kCLErrorHeadingFailure
    
    The heading could not be determined.
    
    kCLErrorRegionMonitoringDenied
    
    Access to the region monitoring service was denied by the user.
    
    kCLErrorRegionMonitoringFailure
    
    A registered region cannot be monitored.
    
    kCLErrorRegionMonitoringSetupDelayed
    
    Core Location could not initialize the region monitoring feature immediately.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If using CLLocationManager in your app, the first time a location update is made
I'm currently using CoreLocation + CLLocationManager in order to compare a users current location
HI all, I was using a sample code which uses CLLocationManager class to determine
I found current location using (CLLocationManager startUpdatingLocation) this method. How long it takes to
I am using CLLocationManager to update the current location but some times the current
In my app I am using CLLocationManager and AdWhirl. I have made no specific
In my iPhone application, I'm using using CLLocationManager to find the direction in which
I have set my app to listen to significant location changes using startMonitoringSignificantLocationChanges of
I need to hide the Location service Popup window. I am using ALAsset library
using ASP.NET MVC, I have a Model, to which I'm attaching attributes so that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.