Is there a way to detect that ionic serve
CLI is running (and then not on a real device) in the program and use it as a conditional.
My issue: I have a Cordova plugin that sends back an answer to Cordova.
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).
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 ionic serve
CLI is running. In other words: Check if it is running on a real device or a regular browser.
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.