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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.5.0
    • None
    • cordova-plugin-device
    • 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

              Unassigned Unassigned
              sunshineo Gordon Sun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: