title: Check if running as "ionic serve" to use a conditional in the program
body: <p>Is there a way to <strong>detect that <code>ionic serve</code> CLI is running</strong> (and then not on a real device) in the program and use it as a conditional.</p>
  
  <p><em>My issue</em>: I have a Cordova plugin that sends back an answer to Cordova.</p>
  
  <p>When I was using Ripple, it offered to chose the value of the callback to be sent back to JavaScript (to emulate the plugin result).</p>
  
  <p>I notice that Ionic2 does not do that when I run in a browser. So to ease my dev and make it possible to test it on a browser (and not build to the real device constantly), I would like to be able to check in the program if the <code>ionic serve</code> CLI is running. <strong>In other words: Check if it is running on a real device or a regular browser</strong>.</p>
  
  <p>If it runs on the browser then I'd used a prompt to ask the user to enter a dummy value for the Cordova plugin result instead of the real Cordova plugin.</p>