title: How should Cordova plugin for single platform be packaged?
body: <p><strong>Background</strong></p>
  
  <p>I am developing a Cordova app that must run as a service, i.e. continue in the background and restart when the device does. As far as I can tell, on iOS it is just a case of setting the UIBackgroundModes correctly but on Android requires a little more effort and the service needs to be explicitly started.</p>
  
  <p>I have developed a plugin for Android based on Mark Taylor's example <a href="http://red-folder.blogspot.co.uk/2012/09/phonegap-service-tutorial-part-1.html" rel="nofollow">here</a>.</p>
  
  <p>At present I have some JS called on <code>deviceready</code> to start the Android code but don't need to do anything for iOS.</p>
  
  <p><strong>Question</strong></p>
  
  <p>How should I package my plugin so that it will work on all platforms with zero config. It seems clunky to write <code>if (Device.type == 'android')</code> statements in my main JS but I don't really want to write native null implementations.</p>
  
  <p>Is there a suggested approach for this?</p>