Use Ionic 2 for Windows Phone/Windows Universal apps?

Asked

Viewed 700 times

0

It is a recent doubt that I have, I intend to start development with the Ionic, but as my main platform is the Windows Phone, I want to know if the framework gives compilation support for the platform, and what is the way to add this platform in a project and compile for it, I have been researching but found nothing similar.

And if it is possible to compile to the Microsoft, what requirements for this to be done, is it possible to perform such action on a Linux? And how is such action done?

Error while trying to add the Windows platform to the project:

1 answer

0


There is a simple way to develop applications with Ionic and ionic2.

P.S.: Cordova needs to be installed, to install on Linux:

sudo apt-add-repository ppa:cordova-ubuntu/ppa
sudo apt-get update
sudo apt-get install cordova-cli
npm install -g cordova
sudo apt-get install cmake debhelper libx11-dev libicu-dev pkg-config qtbase5-dev qtchooser qtdeclarative5-dev qtfeedback5-dev qtlocation5-dev qtmultimedia5-dev qtpim5-dev qtsensors5-dev qtsystems5-dev

1) After creating the project, enter the folder and type:

ionic platform list

He will list the installed and available platforms. 2) Add the platforms

ionic platform add ios
ionic platform add android
ionic platform add windows

3) Update the config.xml of your project IOS and android settings are already made after the add command, for windows insert lines:

<platform name="winphone" />
<preference name="windows-target-version" value="10.0" />
<preference name="windows-phone-target-version" value="10.0" />
<preference name="Windows.Universal-MinVersion" value="10.0.10069.0" />
<preference name="Windows.Universal-MaxVersionTested" value="10.0.10166.0" />

4) Develop your application according to your Operating System You said you use Linux, so you’re probably developing for android.

5) Create an account on https://build.phonegap.com . This service will build automatically for you on the platforms added to your project.

6) Upload your project (zip) to build.phonegap.com or enter your repository address on github

7) Have your app builds

8) You will receive the link to download the application directly on your mobile phone or else you use to download the built file to the store

9) Follow the steps of the store in question to submit the application

10) End =)

  • Only now have I had time to resume studies and apply your answer. I could not add the Windows platform to the project, the error is in the question. Already when adding android the error does not repeat, but my goal is to add the windows platform

  • I managed to solve by installing Cordova twice, once per apt-get and once per npm.. I will complete your reply.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.