I\'d like to know whether my app is being run on device or simulator at run time. Is there a way to detect this?
Reason being to test bluetooth api with simulator:
if anyone is looking for Unity solution i did this, the only way i found how.
Unity
using System.Globalization; public static bool IsArm() { return CultureInfo.InvariantCulture.CompareInfo.IndexOf(SystemInfo.processorType, "ARM", CompareOptions.IgnoreCase) >= 0; }