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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:30:01+00:00 2026-06-06T23:30:01+00:00

I have been struggling with the location service request for my iPhone app. If

  • 0

I have been struggling with the location service request for my iPhone app. If the user says “Don’t allow”, I’m stuck in my “this app needs location services in order to work”…

All attempts to re-apply for location services have been fruitless, which several stacks here can testify to.

Then I read that the only way to re-enable the location services was to redirect the user to the location service settings using this :

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"]]; 

But even that doesn’t seem to work (iPhone 4 and 4S, both on 5.1)

Is there really no other way, except telling the user to go to preferences and then guiding him through ? It seems so toe-twistingly bulky to me.

  • 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-06-06T23:30:02+00:00Added an answer on June 6, 2026 at 11:30 pm

    If the user turned the location service off, there is no other way then to tell the user to turn them on again.

    You could try to redirect, but this is only possible on iOS 5.0. So you can do it like:

    NSURL *prefsURL = [NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"];
    
    if ([[UIApplication sharedApplication] canOpenURL:prefsURL]) {
       [[UIApplication sharedApplication] openURL:prefsURL];
    } else {
      // Can't redirect user to settings, display alert view
      UIAlertView *alertView = ....
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been struggling with this for a while now. given a set of
I have been struggling with Core Data sigh so I decided to work this
I have been struggling with setting up an iOS (Objective-C) app which utilizes the
I have been struggling with this error for more than two hours: error: aggregate
I have been struggling with this question for awhile now, and I haven't reached
I have been struggling with this for quite some time having been accustomed to
I have been struggling with getting this to work properly. I am trying to
Been struggling with this for about 4 hours, I'm attempting to have a modal
I've been struggling with this for a while. Presently, I have a grid of
I have been struggling with this, but is there a way to make the

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.