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

device.platform returns null on iOS

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      I'm in the process of testing a cordova app on iOS using Testflight, but I'm having an issue with the device plugin. While it works fine in the XCode simulators as well as on a physical device when installed via XCode, the versions downloaded from Testflight all return device.platform = null. On Android it also works fine.

      I've worked around it by testing for device.platform !== "Android" instead of doing device.platform === "iOS", but I would prefer to have the plugin work as expected. Any ideas what's going on here?

      cordova-plugin-device 1.0.1 "Device"
      Installed platforms: android 4.1.1, ios 3.9.2

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vladimir.kotikov Vladimir Kotikov
            sigvekvalsvik@gmail.com Sigve Kvalsvik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment