[ 
https://issues.apache.org/jira/browse/CB-6976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14043995#comment-14043995
 ] 

Sergey Grebnov commented on CB-6976:
------------------------------------

The following issue was found when running on Windows Phone emulator if it is 
not started

I am getting an error now when I try to deploy to the windowsphone 8.1 emulator 
though, the emulator starts, but the app doesn’t launch

cordova run windows -- --phone

If I copy/paste the highlighted text below and run it directly in the command 
prompt the app launches as expected.

error info:

  Your package has been successfully created.
  CordovaApp.Phone -> 
E:\temp\edge\wintest7\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_Debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_Debug.appx
  CordovaApp.Phone -> 
E:\temp\edge\wintest7\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_Debug.appxupload

SUCCESS

WARNING: [ --target=<ID> | --emulator | --device ] not specified, defaulting to
--emulator
Deploying to emulator ...
### project type: phone
Appropriate package found at 
E:\temp\edge\wintest7\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_Debug_Test
"C:\Program Files (x86)\Microsoft SDKs\Windows 
Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe" /installlaunch 
"E:\temp\edge\wintest7\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_Debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_Debug.appx"
 /targetdevice:xd

AppDeployCmd - Help

Syntax:
AppDeployCmd.exe <cmd[:param]> <Product-id/app FileName> <targetdevice[:param]>


  <cmd[:param]> - Specifies the command to be executed (one of the following)
    /install          - installs the application on the device.
                        (requires package filename)

    /installlaunch    - installs and launches the application on the device.
                        (requires package filename)
    /update           - updates the application already installed on device.
                        (requires package filename)
    /updatelaunch     - updates and launches the application already installed o
n device.
                        (requires package filename)
    /launch           - launches the application already installed on the device
.
                        (requires product-id)
    /uninstall        - uninstalls the application from the device.
                        (requires product-id)
    /EnumerateDevices - lists the valid device targets along with the
                           device index for each device.

  <product-id> - Specifies the GUID of the product. This is located in
                 AppxManifest.xml for APPX projects
                 or WMAppManifest.xml for XAP projects.

  <app filename> - Specifies the full path of the app to be installed or updated
.

  </targetdevice[:param]> - Specifies the target device (one of the following):
    xd                - default emulator
    de                - Windows Phone device connected to the desktop
    n                 - device listed at index n. To get the list of devices
                        use the following command:
                        "AppDeployCmd.exe /EnumerateDevices"

  </force[:INTERNAL|SDCARD]> - forces an install to internal storage or to SD ca
rd storage.
                               Only valid with /install and /installlaunch.

Examples: (assuming product id is f8ce6878-0aeb-497f-bcf4-65be961d4bba
          and FilePath is D:\PhoneApp1.xap or D:\PhoneApp2.appx)

AppDeployCmd.exe  /install D:\PhoneApp2.appx /targetdevice:xd
      - installs PhoneApp1 on the default emulator.

AppDeployCmd.exe  /installlaunch D:\PhoneApp1.xap /targetdevice:xd
      - installs PhoneApp1 on the default emulator and then launches it.

AppDeployCmd.exe  /launch f8ce6878-0aeb-497f-bcf4-65be961d4bba /targetdevice:de

      - launches the app with specified product id on the device.

AppDeployCmd.exe  /update D:\PhoneApp1.xap /targetdevice:2
      - updates PhoneApp1 already installed on the device
        specified by device index 2. To get the list of valid indices use
        the EnumerateDevices command.

AppDeployCmd.exe  /updatelaunch D:\PhoneApp2.appx /targetdevice:de
     - updates PhoneApp1 already installed on the device and then launches it.

AppDeployCmd.exe  /uninstall f8ce6878-0aeb-497f-bcf4-65be961d4bba /targetdevice:
xd
      - uninstalls the app with specified product id from the default emulator.

AppDeployCmd.exe  /EnumerateDevices
      - enumerates the list of valid device targets along with the
        corresponding device index for each device.


Error: The parameter is incorrect.


Error: E:\temp\edge\wintest7\platforms\windows\cordova\run.bat: Command failed 
with exit code 2
    at ChildProcess.whenDone 
(e:\cordova\cordova-lib\cordova-lib\src\cordova\superspawn.js:135:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:753:16)
    at Process.ChildProcess._handle.onexit (child_process.js:820:5)

E:\temp\edge\wintest7>


The deploy error to windows emulator is only happening when the emulator is not 
running. So the first time starts the emulator but fails to deploy the app, the 
second time (with the emulator still running) works. 

> Add support for Windows Universal apps (Windows 8.1 and WP 8.1)
> ---------------------------------------------------------------
>
>                 Key: CB-6976
>                 URL: https://issues.apache.org/jira/browse/CB-6976
>             Project: Apache Cordova
>          Issue Type: New Feature
>            Reporter: Sergey Grebnov
>            Assignee: Sergey Grebnov
>
> Creating this as a new JIRA feature since this is different from previously 
> proposed adding support for Windows 8.1 only.
> This feature proposes transforming 'windows8' to 'windows' platform which is 
> based on Windows Universal apps and which allows building apps for Windows 8, 
> Windows 8.1 and Windows Phone 8.1. Window Phone 8 (wp8) stays as a platform. 
> Original info from dev mail thread:
> With Windows 8.1 and Windows Phone 8.1 platforms released, it would be great 
> to get Cordova support building apps for those platforms too. A lot of people 
> on this list have also been talking about how to adapt existing apps to the 
> new 8.1 platforms. Here is an initial proposal and prototype of how it may 
> look. 
> TL;DR; - Rename windows8 platform to be called windows. This platform can 
> build apps for Windows 8, Windows 8.1 and Windows Phone 8.1. Window Phone 8 
> (wp8) stays as a platform. 
> Link to the document - 
> https://onedrive.live.com/redir?resid=DEA20E6DC28C96DD!2781&authkey=!APz1za6lnJhsaaQ&ithint=file%2c.docx
> For more details, see "Support for Windows Universal apps (Windows 8.1 and 
> Windows Phone 8.1)" dev email thread
> TODO: add Windows 8.1 and WP8.1 components.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to