title: Turn on location services without navigating to settings page
body: <p>Against the traditional approach of prompting user to go to the settings page and enable location services and come back again, I have noticed a simpler way of doing the same in some of the latest apps.</p>
  
  <p>Referring to below screenshot, it prompts a dialog to user to enable the location services with just one click and it works in those apps.</p>
  
  <p>How can I achieve the same?</p>
  
  <p><a href="https://i.stack.imgur.com/DvfSE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DvfSE.png" alt="enter image description here"></a></p>