Posts Tagged simulator

Detect in Xamarin.Forms if the app is running in simulator or on real device

Sometimes you need to detect if you are using simulator (emulator) or real device, typical example can be the situation when you are running the webservices used by your application on the same computer where you are running simulator and you would like quickly check how it is working altogether.

There are separate solutions for iOS here:
https://developer.xamarin.com/recipes/ios/general/projects/environment_checks
And for Android here:
http://forums.xamarin.com/discussion/34275/detect-if-simulator-or-device

I just gathered them altogether and created dependency service for Xamarin.Forms application

Read the rest of this entry »

, , , , ,

1 Comment