How to tell if running in simulator/emulator
Anyone know how to do this? Couldn't find anything in the docs or forums.
1 Answer
-
Accepted Answer
Try something like this…..
if (Titanium.Platform.model == 'google_sdk' || Titanium.Platform.model == 'Simulator') { //Whatever is unique to simulator }My previous answer is here.