Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8767

Have the ability to detect running in emulator or simulator vs real device

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.5.0
    • Fix Version/s: None
    • Component/s: cordova-plugin-device
    • Labels:
      None

      Description

      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?

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sunshineo Gordon Sun

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment