You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jesse MacFadyen (JIRA)" <ji...@apache.org> on 2015/10/27 08:07:27 UTC
[jira] [Resolved] (CB-8767) Have the ability to detect running in
emulator or simulator vs real device
[ https://issues.apache.org/jira/browse/CB-8767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse MacFadyen resolved CB-8767.
---------------------------------
Resolution: Duplicate
new property `isVirtual` has been added to iOS + Android + WP8
> Have the ability to detect running in emulator or simulator vs real device
> --------------------------------------------------------------------------
>
> Key: CB-8767
> URL: https://issues.apache.org/jira/browse/CB-8767
> Project: Apache Cordova
> Issue Type: Improvement
> Components: Plugin Device
> Affects Versions: 3.5.0
> Reporter: Gordon Sun
>
> Google search on how to do this gave me nothing useful except http://stackoverflow.com/questions/20761520/phonegap-detect-emulation . But when I try to do what the answer suggested device.platform gives me iOS device.model gives me x86_64 . There is basically no way for me to detect whether I'm running inside emulator or real device. Is this a regression or something?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org