My first thought was to use ionic.Platform.platform(), but in Ionic Lab, this returns ‘ios’ and ‘android’ respectively.
I need to handle authentication when not on a native device. Currently I can do it using ionic.Platform.platform() on localhost:8100, but I really enjoy and prefer to develop in Ionic Lab.