title: Is there any alternative to navigator.permissions.query Permissions API?
body: <p>Is there any alternative to <code>navigator.permissions.query</code> <em><a href="https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query" rel="noreferrer">Permissions API</a></em> query to check <code>geolocation</code> permission.
  cause its still in Working Draft and has less Browser compatibility.</p>
  
  <p><strong><em>W3C Permissions Ref :</em></strong> <a href="https://www.w3.org/TR/permissions/" rel="noreferrer">https://www.w3.org/TR/permissions/</a></p>
  
  <p>Issue is <code>app resume</code> once user perform action on <strong>native permission popup</strong> then wanted to check the <code>action</code> being taken by user.</p>
  
  <p><a href="https://stackoverflow.com/questions/52619405/hybrid-cordova-app-callback-for-location-permission-alert">Hybrid Cordova App callback for location permission alert</a></p>
  
  <p><strong>Platform</strong> : Mobile Android</p>
  
  <p><strong>NOTE</strong> : Don't want to use <code>cordova diagnostic plugin</code> </p>
  
  <p>Example:</p>
  
  <pre><code>navigator.permissions.query({name:'geolocation'}).then(function(result) {
  
    console.log('result : ', result);
  
  });
  </code></pre>