Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Alessandro_T_
Beginner
92 Views

Detect simulator

Jump to solution

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

 

Tags (2)
0 Kudos
1 Solution
PaulF_IntelCorp
Employee
92 Views

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

View solution in original post

3 Replies
PaulF_IntelCorp
Employee
92 Views

I've asked engineering for a new trick.

PaulF_IntelCorp
Employee
93 Views

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

View solution in original post

Alessandro_T_
Beginner
92 Views

Yes it's Ok

Reply