title: Granting device-location-access
body: <p>What is the recommended way to ask for a person's location?  The documentation seems to be <a href="https://bixbydevelopers.com/dev/docs/reference/type/capsule.permissions" rel="nofollow noreferrer">incomplete</a>. </p>
  
  <p>Previously, you would use <strong>user-profile-access</strong> but that has been deprecated.  Yet, the documentation for <strong>device-location-access</strong> states '<em>This is a beta feature and doesn't yet have documentation</em>'</p>
  
  <p>When using device-location-access...the simulator (and device) still ask for the contacts as if I'm using the deprecated 'user-profile-access' permission.  Here are the current settings.  </p>
  
  <p><strong>capsule.bxb</strong></p>
  
  <pre><code>permissions {
      device-location-access
    }  
  </code></pre>
  
  <p><strong>capsule-info.bxb</strong></p>
  
  <pre><code>requested-permissions {
      permission (device-location-access) {
        justification (Access your location to provide local deals)
      }
    }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/g98FG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g98FG.png" alt="enter image description here"></a></p>