title: Cannot Fetch GPS Coordinates Through LocationManager.GPS_PROVIDER
body: <p>I cannot fetch the location using <code>LocationManager.GPS_PROVIDER</code>. But it is working with <code>LocationManager.NETWORK_PROVIDER</code>.</p>
  
  <pre><code>val locationManager=getSystemService(Context.LOCATION_SERVICE) as LocationManager
  
  locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,500, 100F,listener)//It's working if i use NETWORK_PROVIDER
  
  val listener=object :LocationListener {
      override fun onLocationChanged(location: Location?) {
          latitude = location!!.latitude.toString()
          longitude = location!!.longitude.toString()
  
          Log.d("location", "$latitude $longitude")
      }
  
      override fun onStatusChanged(provider: String?, status: Int, extras: Bundle?) {
      }
  
      override fun onProviderEnabled(provider: String?) {
      }
  
      override fun onProviderDisabled(provider: String?) {
      }
  }
  </code></pre>