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 6386039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:58:28+00:00 2026-05-25T02:58:28+00:00

In Maps application that comes bundled with the iPhone, we always get the following

  • 0

In Maps application that comes bundled with the iPhone, we always get the following alert message whenever the Location services is turned off and the user tries to use location services:

Turn On Location Services to Allow “Maps” to Determine Your Location | Settings | Cancel

Please note that the two buttons in the above Alert are Settings and Cancel.

Now the question is if we can get the exact same behavior as described above in the location-aware third-party applications that we all develop. Just to explain the question in more detail, let us say that we are developing our location-aware application by name “Abc”. Every time we invoke that part of “Abc” application that requires location services, we need to get the following alert message, if location services is turned off.

Turn On Location Services to Allow “Abc” to Determine Your Location | Settings | Cancel

I did try the following piece of code in my location-aware application as part of the implementation file, but it does not behave the same way as Maps application in terms of displaying the desired Alert message asking the user to turn on Location services, if it was presently turned off.

@implementation LocationViewController
@synthesize locationManager

self.locationManager = [[[CLLocationManager alloc] init] autorelease];
locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters;
locationManager.delegate = self;
[locationManager startUpdatingLocation];

In the related header file, i have the following piece of code

@interface LocationViewController:UIViewController<CLLocationManagerDelegate> {
    CLLocationManager *locationManager;
}
@property(nonatomic, retain) CLLocationManager *locationManager;
@end

Is there some other API(s) that need to be used to get the above described behavior (as in Maps application) OR is it simply not possible for third-party location-aware applications to achieve the desired behavior as of iOS 4.x. Please share your comments on this.

  • 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-25T02:58:29+00:00Added an answer on May 25, 2026 at 2:58 am

    You can’t do it – it’s a private API. There’s no way to launch the settings apps programmatically from within your application (unfortunately, because you can launch iTunes, Safari, and the like through URL schemas. None exist for the settings app). What you get instead is the default “Would you like to use your current location” message.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an iphone application that displays tiled maps. I am currently
Hey. I have a maps application that uses google maps. I get the bounds
I have an application that uses the Google Maps API to geocode distances between
I'll start working on windows forms application that hosts ESRI maps into it So,
I've developing an ASP.NET application that interfaces with Google Maps and retrieves marker information
I am developing an ASP.NET web application that incorporates google maps. I have an
I'd like to use use maps in my application, so that there will be
I'm making an application that updates a user's location and path in real time
I am trying to create a Google Maps application that has the map of
I'm developing an application that's tracing lines of highways on the Google Maps SDK

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.