title: Service and cordova plugin
body: <p>I would like to know what is the best way to solve my problem. And my problem is the following.</p>
  
  <p>I have developed an android app using cordova. The native android code is the minimum required.</p>
  
  <p>What I need is, when the app starts, to start a service with it. When the app closes the service must be remain running. The service communicates with a server and downloads something if this "something" exists. Only after download event the service must notify the user to start the initial app and see the results or, even better, the service itself  to start the initial app.</p>
  
  <p>What is the best way to implement this, taking into account that I don't want to discard my app in cordova.</p>
  
  <p>I've examined the plugin creation since the most code of the original app and the service code is the same. <strong>Is a cordova plugin the best way to implement my service</strong>? Can a cordova plugin service my purpose or I am totally wrong?</p>
  
  <p>Is it possible to use my javascript code in this plugin?</p>
  
  <p>Do I need to pass to native code in order to accomplish what I need?</p>
  
  <p>Thank you in advance</p>
  
  <p>George</p>