Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-27-2009, 05:29 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 8
Thumbs up Handling CoreLocation service reply

Hi,

In my app i am using CoreLocation services to access current Location. For accessing the current location in iPhone the Location service must be turned ON in settings. If not it alerts the user as

"Turn On Location Services to Allow "helloworldApp" to determine Your Location" and choices for this alert message are settings and cancel.

Now how can i handle this reply from CoreLocation framework. Whether user clicks on the settings button or cancel button?

Please Suggest.

Any help would be appreciated !

-Sathiya
Sathiya is offline   Reply With Quote
Old 10-27-2009, 06:15 AM   #2 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 5
Default

Basically through the error delegate callback.

- (void)locationManager: (CLLocationManager *)manager
didFailWithError: (NSError *)error

From an application perspective the choices are really not any different. If they cancel, then they don't want to allow CoreLocation privileges for the app and your callback will be executed. If they select Settings, then the app will be terminated to open the Settings app. (Don't recall now if your callback is triggered in that case or not.) If they enable Location Services, then when they relaunch your app they will be presented with the option again to agree or deny which will trigger one of your delegate methods.

Last edited by terence; 10-27-2009 at 06:17 AM. Reason: Interpreted the :( in the code as an emoticon.
terence is offline   Reply With Quote
Old 03-01-2010, 09:48 PM   #3 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 1
Default

I too think so terence
__________________
quang cao online | quang cao
CCronaldo is offline   Reply With Quote
Old 07-07-2010, 01:51 AM   #4 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 1
Default

Hi Friends, I am Cinema and I have read your site in a very deep and I would like to appreciate you on this brilliant effort. You have provided some thing so much different that I can't have words for thanks.
__________________
640-816 and 640-863 exam guide 642-072 from testking
Cinema is offline   Reply With Quote
Old 02-19-2011, 07:42 AM   #5 (permalink)
Registered Member
 
Join Date: Jan 2011
Location: Worcester
Age: 23
Posts: 1
Default

But sometimes after relaunching app does not asks for agreement change.I think You have to inform about this.
__________________
Carpaltunnel Syndrome
brookeC is offline   Reply With Quote
Old 09-02-2011, 04:15 AM   #6 (permalink)
Registered Member
 
Thoiseqa's Avatar
 
Join Date: Sep 2011
Location: 7 Yangan Drive
Posts: 1
Send a message via Yahoo to Thoiseqa
Default

First, our focus on security is on the infrastructure itself. So it is all about how you protect the network, the device, and the application that is riding on the server.

Regards,
Tamara aka Thoiseqa
__________________
What is yin yang the yin and yang meaning, Qi (another word for chi or energy) how it is symbolized, how to identify them and how they relate to feng shui and our environment.
Thoiseqa is offline   Reply With Quote
Reply

Bookmarks

Tags
corelocation, iphone, objective-c

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 272
17 members and 255 guests
ADY, Alsahir, Dani77, Desert Diva, Duncan C, F_Bryant, Grinarn, HemiMG, Herbie, jansan, linkmx, M@realobjects, macquitzon216, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,761
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:44 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0