Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
15 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

Accepted Solutions
Highlighted
15 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
Highlighted
15 Views

I've asked engineering for a new trick.

0 Kudos
Highlighted
16 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
Highlighted
Beginner
15 Views

Yes it's Ok

0 Kudos