GPS: iphoneStartTrackingLocation

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

GPS: iphoneStartTrackingLocation

Post by genie » Fri Sep 21, 2012 7:03 am

I like to force the users of the app to allow location services.

My problem is.. the toast message that asks the users -- "Blah blah would like to use your current location." [Don't Allow] [OK] -- is only asked once. I like to somehow loop and reask and reask and reask until they say [OK].

I tried to write a simple repeat loop to perform "iphoneStartTrackingLocation" repeatedly...so I found out that it never asks again.

Is there a way to do this? Probably RESET the tracking so it's like it never asked before?

Please help.

Thanks,
Genie

dave_probertGA6e24
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 328
Joined: Mon Dec 05, 2011 5:34 pm
Contact:

Re: GPS: iphoneStartTrackingLocation

Post by dave_probertGA6e24 » Fri Sep 21, 2012 7:14 am

I really don't think that is allowed by either Apple or the rest of the morally thinking world!

The purpose of the question regarding whether the user wants to allow location tracking is not to ignore them and try and force them to use it. If the user says no then your app should respect that decision. If you need the location tracking then simply explain that to the user and ask them to enable it. You should never - I repeat never, force the owner of the device to do something, else you will simply not get any further sales because of bad reviews and likely complains to Apple that will get you app pulled from iTunes.

Try not to be silly - do it the right way.

Dave
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: GPS: iphoneStartTrackingLocation

Post by genie » Fri Sep 21, 2012 7:20 am

Thank you, Dave!

Hmmm...I just like to user to stay in one page, and not able to continue. Anyway, this app is not going to be on the app store. It's like an in-house app for a company...and that's what they want to happen. :(

Well, thank for letting me know it's nearly impossible, and thanks for the very prompt response. :)


Thanks,
Genie

dave_probertGA6e24
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 328
Joined: Mon Dec 05, 2011 5:34 pm
Contact:

Re: GPS: iphoneStartTrackingLocation

Post by dave_probertGA6e24 » Fri Sep 21, 2012 10:24 am

Ah well. An in-house App is an easy thing to handle.

Simply let them refuse - but detect that they refused and stop the program from moving to another screen (easy task to change the action for a button). But leave them on a screen that tells them why they must enable the service (and how to).

When they come back from the settings screen you simply run the hidden check again and if it passes then let them continue.

Dave

PS. Probably best to mention that this is an in-house App when asking the question in the first place - it solves a lot of misunderstanding.
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: GPS: iphoneStartTrackingLocation

Post by Klaus » Fri Sep 21, 2012 11:04 am

Hi guys,

we have a dedicated "iOS" forum, so please use it, thanks!
Will move this thread.


Best

Klaus

Post Reply