Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Titanium.Geolocation.purpose - only prompt once

Is there a way that the Titanium.Geolocation.purpose prompt can only show once, so that the user does not have to answer it every time they use my geolocation-based iOS app? For instance, could it save their geolocation permission in their iOS settings?

— asked October 18th 2010 by Chad Nantais
  • geolocation
0 Comments

4 Answers

  • Accepted Answer

    A typical iOS user will only get the geolocation dialog twice. Since this info is related to the unique ID of the app a developer can see it many times because a rebuild may cause the creation of a new app ID and therefore you lose its settings.

    No, you cannot override the user's intent, iOS will manage the setting for you.

    — answered October 18th 2010 by John McKnight
    permalink
    1 Comment
    • It is possible to reset the permission (if they've said no) so we can ask again?

      — commented April 20th 2012 by Jeremy Sher
  • i think thats justt for developer to set, not the users. Atleast thats how I do it.

    — answered October 18th 2010 by Sj Singh
    permalink
    2 Comments
    • Do you mean that the prompt will not appear when the app is released for distribution?

      — commented October 18th 2010 by Chad Nantais
    • Do you mean that the prompt will not appear when the app is released for distribution?

      — commented October 18th 2010 by Chad Nantais
  • The user will be prompted with the message a few times, I believe it's 3. If they answer yes that your app can use gps location every time (of those 3ish), then they will no longer be prompted.

    It's a default iOS behavior that you have no control over, because apple wants to protect people's privacy.

    — answered October 18th 2010 by Mike Robinson
    permalink
    0 Comments
  • I think you're talking abt Titanium.Geolocation.getCurrentPosition, not Titanium.Geolocation.purpose

    — answered October 18th 2010 by Sj Singh
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.