Determ in code - if running in simulator?
Hi,
Is it possible to "determ" if the device is running in a simulator or in a real phone by code?
When coding for geolocation, it would have been nice to manually code my long and latitude positions…..
Joakim
1 Answer
-
Accepted Answer
if (Titanium.Platform.model == 'google_sdk' || Titanium.Platform.model == 'Simulator') { //Whatever is unique to simulator }
Something in this lines…