Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1582

Ti.Platform.osname reports windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Alloy 1.9.14, Alloy 1.10.4
    • Fix Version/s: CLI Release 6.3.0
    • Component/s: Runtime
    • Labels:
      None
    • Environment:

      Appc CLI 6.2.4 (Alloy 1.9.14) / Ti CLI: 5.0.14 (Alloy 1.10.4)
      Ti SDK: 6.2.1.GA, 7.0.0.v20170920153129

    • Sprint:
      2017 Sprint 19 Tooling

      Description

      Description

      When using Ti.Platform.osname on Windows with Alloy, it incorrectly reports windows. The correct value is windowsstore or windowsphone

      Steps to reproduce
      1. Add console.log(Ti.Platform.osname); to index.js of an alloy app
      2. Build for Windows
      Actual

      windows is logged

      Expected

      windowsstore for ws-local target, windowsphone for wp-emulator target

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Feon Sua Xin Miao
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code