Software Archive
Read-only legacy content

Detect simulator

Alessandro_T_
Beginner
455 Views

How can i determine if code is running under simulator or a real device ?

the methos I used ,

if( window.tinyHippos) {

}

does no longer work in latest release

 

0 Kudos
1 Solution
PaulF_IntelCorp
Employee
455 Views

Try this -- if( window._cordovaSimulate ) -- haven't had a chance to test it, myself, but should work.

View solution in original post

0 Kudos
3 Replies
PaulF_IntelCorp
Employee
455 Views

I've asked engineering for a new trick.

0 Kudos
PaulF_IntelCorp
Employee
456 Views

Try this -- if( window._cordovaSimulate ) -- haven't had a chance to test it, myself, but should work.

0 Kudos
Alessandro_T_
Beginner
455 Views

Yes it's Ok

0 Kudos
Reply