How to detect when an Ionic App is running on device with livereload

How to detect when an Ionic App is running on device with livereload

Ionic livereload option is great but there are special situations when you need to detect when an Ionic App is running on device with the livereload flag. For example when you need to fetch data from a REST API and you have to use a PROXY so you do not get any Access-Control-Allow-Origin error.