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

  • Home
  • SEARCH
  • 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 5975153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:02:35+00:00 2026-05-22T21:02:35+00:00

I have an app whose core functionality revolves around the use of the user’s

  • 0

I have an app whose core functionality revolves around the use of the user’s current location. It shows objects near the user on the map. I don’t create a location manager, I just use the mapview’s. This works well, but now I’m trying to make sure my app alerts the user correctly of it’s need for location-services. What I’m doing now is creating a new location manager in the applicationDidBecomeActive method, and attempting to start updating in order to trigger a request for permission from the user whenever the app opens or comes back from the background with location-services off like this:

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    CLLocationManager *manager = [[CLLocationManager alloc] init];
    if([CLLocationManager locationServicesEnabled])
    {
        NSLog(@"yes");
    }
    [manager startUpdatingLocation];
}

Question 1: Is this a good way of doing it?

Question 2: Since every aspect of my app uses location-services would it be appropriate to close the app if the user selects “Don’t Allow” when they are prompted that my app would like to use location-services?

Any other advise from experience with dealing with location-services and the notifications and requests to the user would be appreciated.

  • 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-22T21:02:36+00:00Added an answer on May 22, 2026 at 9:02 pm

    You can’t “close” an app–Apple doesn’t allow it, and there’s actually no public API to “quit”.

    What you can do instead is throw up a view that takes over the whole screen explaining the failure to operate properly without CoreLocation permission. Maybe even with a button making CLLocationManager prompt them for permission again.

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

Sidebar

Related Questions

I have a simple (Servlet, JSP, and JSTL) web app whose main functionality is
I have an ASP.NET MVC web app whose controllers use WCF to call into
We have a model in our ralis app whose objects are assigned a score
I have an image in a C# WPF app whose build action is set
have an app that finds your GPS location successfully, but I need to be
I have a Core Data app that will end up being an iPhone/iPad universal
I have a Rails app whose major part is to query another web-service using
In my app, I have an OL tag whose contents are changed by various
I have a Button within my app whose enabledness I have bound to whether
I have an app delegate, whose default view should be preceeded by a modal

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.