1

I have developed a cordova app for windows phone 8.1 by adding windows platform.

Cordova Version: 6.0.0, Windows Platform Version: 4.3.1, Visual Studio 2015 Update 2

The app runs successfully when running in Debug Mode with ARM or AnyCpu selected on developer registered windows phone 8.1.

Steps performed while signing the app :

1.Add the required values(Package Name, Package Display Name, Version) on the following line in the packageapp.phone.appmanifest.

<Identity Name="xxxxxxxxxxxxxx" Publisher="xxxxxxxxxx" Version="1.0.0.0" />
  • Left below line as it is(ie. the one that was generated while project creation)

<mp:PhoneIdentity PhoneProductId="xxxxxxxxxxxxxxxxxxxxxxxxxx" PhonePublisherId="xxxxxxxxxxxxxxxxxxx" />

  • Kept Id same as Name in Identity.

<Application Id="xxxxxxxxxxxxxx" StartPage="www/index.html">

  • Added Display Name, Publisher Display Name, Description, default language

  • Changed the following in config.xml. This id in the widget tag is same as Name in the Identity Tag.

<widget id="xxxxxxxxxxxxxx" version="1.0.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>App Name</name> </widget>

  1. Clean Solution and Build it in Release mode (ARM) and the appx file gets generate successfully at below location of project :

    PathToProject\platforms\windows\build\phone\Release\ARM

  2. Installed software "Microsoft Intune Company Portal for Windows Phone"

4.Place AET.aet , AET.aetx , AET.xml file in "C:\Program Files (x86)\Microsoft Corporation\Microsoft Intune Company Portal for Windows Phone"

  1. Open PowerShell from start menu and Run as Administration.

  2. Navigate to "C:\Program Files (x86)\Microsoft Corporation\Microsoft Intune Company Portal for Windows Phone" in power shell.

  3. Run command

    Set-ExecutionPolicy -ExecutionPolicy AllSigned

8.Run following script in PowerShell:

.\Sign-WinPhoneCompanyPortal.ps1 -InputAppx "PathToAppxFile\App.appx" -PfxFilePath "PathToPFXFile\PFXName.pfx" -PfxPassword xxxxxxxxxx -AetxPath "C:\Program Files (x86)\Microsoft Corporation\Microsoft Intune Company Portal for Windows Phone\AET.aetx"

  1. Give Output Parameter name of signed .appx file you want to generate. For example MyApp.appx

  2. Copy .aetx file to phone storage and tap on .aetx file. This will enroll device to access company app.

  3. After installing .aetx file in device copy signed .appx file to phone storage and tap on file for installation.

I have also tried Project-->Store-->Create App Packages-->No and got successful Validation Result while creating App Package. I even tried uploading .appxupload file to Windows Dev Center and it was successful.

Issue : While signing the app using enterprise certificate and installing it on the device I get the an Error. Please find attached screenshot for the same.

enter image description here

I have also tried the following links to no avail:

  1. Windows Phone 8.1 HTML Company Apps - Can't install company app, "Can't install company app" on Windows Phone 8
  2. https://stackoverflow.com/questions/32766973/sideloading-universal-windows-phone-8-1-company-app-on-windows-phone-8-1
  3. Install an appx manually on multiple Windows Phone 8.1 devices
  4. How to install Windows Phone 8.1 app in other phones in the simplest way?.

Note: The project has been developed using command line and not by using default template of Visual Studio

My App has been submitted in App Store and can be downloaded and installed on the device successfully signed with same certificate. Can somebody please shed some light where I am missing.

Thanks in advance.

4

0 回答 0