facebook

Allow or Disallow get current location: CLOSED

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #335182 Reply

    Yann
    Member

    Hello,
    if i disallow my app to get current location by error, is it possible to display confirm box by a function?
    And, how to know if user has disallow get current location function?
    thanks
    Yann

    #335433

    @Yann,

    Short answer
    The user can grant or revoke the app’s geolocation permission from the Settings > Privacy > YourAppName

    Long answer
    iOS provides a privacy setting for all apps that access the device’s geolocation services, e.g., your map app, facebook, google maps app… When the app first attempts to access the current location of the device, the user is prompted to allow or reject the app’s use of current location info. If the user rejects this request then the app will receive a positionError on all geolocation api requests. The error will include a reason of PERMISSION_DENIDED (see http://dev.w3.org/geo/api/spec-source.html).

    The user can grant or revoke the app’s geolocation permission from the iOS Settings App > Privacy > YourAppName

    #335458

    Yann
    Member

    Hello Octavio
    Ok thanks
    i just can make a callback for PERMISSION_DENIED returned by phone to display an alert.
    Yann

    #335480

    @Yann,

    Glad yo help Yann, marking thread as CLOSED

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Allow or Disallow get current location: CLOSED

You must be logged in to post in the forum log in