How to test if app is running in Ionic View



I would like to test if the app is running in Ionic View instead of running out of a ionic run android.

Platform on Ionic Serve equals core
Platform on my iphone Ionic View equals cordova, mobile, ios, iphone
Platform on android (ionic run) equals cordova, mobile, android

So I guess Platform will not give a proper test.

What can I do?

I need this to assure the app runs in Ionic View for unsupported cordova plugins (my case: udp), which breaks the app in Ionic View.