title: Use PhoneGap to Check if GPS is enabled
body: <p>I am building an app using PhoneGap. While using the Geolocation API of phonegap I realized that the APIs time out for two reasons and the same error is thrown:
  1. If GPS is not enabled on the user's device
  2. If GPS is enabled and is not able to get the location of the user (could be several reason, faulty GPS, unclear weather and so on)</p>
  
  <p>I am having an issue in differentiating the cause? Any thoughts on how to do it?</p>
  
  <p>I was wondering if there is any way, I can check if GPS is active on user's device using Phonegap, so that i can do that as a separate check and direct user to the settings window where typically GEO settings are placed. Not sure how to do that? a custom phonegap plugin may be?</p>