title: Phonegap and WebWorkers
body: <p>I am trying to write a PhoneGap/Cordova app.</p>
  
  <p>I am trying to do some of the more long running background stuff in Web Workers. However I am finding that some of the functionality is not available from within the Web Workers.</p>
  
  <p><code>navigator.connection</code> is available from within the main script but is undefined from within the web worker, same goes for <code>navigator.geolocation</code>.</p>
  
  <p>I would also like to access an sql-lite database from within a web worker too.</p>
  
  <p>Any ideas of how to do background operations like this from within PhoneGap/Cordova?</p>
  
  <p>Any help anyone can give would be great.</p>