Cordova and Windows 10 platform

So, things are getting updated.  And so are the platform OS and cordova versions.

Today I am going to talk about deploying Cordova applications on Windows 10 platform.

For developing for windows 10 platform,  the software requirements are:

  1. Windows 8.1 or Windows 10
  2. Visual Studio 2015 community edition
  3. Installation of node (latest version)
  4. Installation of Cordova (latest version)

1. Windows 8.1 or Windows 10 

Well we did upgrade our windows 8.1 to prevent any chances of any issues that might come due to OS dependencies. Windows 10 is good. I love the menu that gives some resemblance to the older menu styles. other requirements would be using a 64 bit machine and a good RAM capacity (we used 8gb)

2. Visual Studio 2015 community edition 

The visual studio can be downloaded from here. The download takes some time.

But the painful part is the installation. It took me more than one day to install all the components properly.

What happens while installing is most of the time the installation progress is stuck at some point for hours.

Solutions :

  • If you could close the current installation and restart again, it will restart from the same point, and by luck it might be faster in some cases
  • Sometimes, the installation does not close either. So you have to go and check the process associated with Visual Studio and you will find that there are 2 processes that are working for the installation, one having some CPU usage, and the other 0% CPU usage. Kill the one with 0% CPU usage. Sometimes, the current installation proceeds further without issue. Otherwise,
  1. close all the tasks (via Task Manager) and restart the machine.
  2. Clear all items in temp folder (%TEMP%)
  3. restart the installation process (it will resume from the last state.

However, please note: it is not suggested to kill the processes manually, because high chances are there that the installation is corrupted, and you will need to repair the existing installation before installation of further components.

Visual Studio 2015 community edition, though the installation process could have been smoother, offers a lot of benefits over 2013 version. Notably for cross platform development you can select the components needed while installing (yes there are a whole set of package helpful for Cordova development) and you dont need to install the windows10/8.1 emulator and SDK separately (out of visual studio as standalone).  They all can be downloaded and installed as a single package! And that is a relief!

3. Installation of node

This needs to be installed from here before installing Cordova as we use the node tools to download and update Cordova.

4. Installation of Cordova

We installed the latest version of Cordova ie 6.1.1

The docs are very helpful, notably Create your first Cordova App & Windows Platform Guide .


Compiling and Deployment of your app

Well the docs give the basic idea of setting up the environment and getting your project running

However, it is to be noted that in config.xml you will need to add:

<preference name="windows-target-version" value="10.0" />

Also while building the app via command line you will have error message like this:

C:\APPV1\platforms\windows\CordovaApp.Windows10.jsproj(83,9): error : The following component requires .NET Native comp
ilation which is not available when targeting ‘Windows10’ and ‘AnyCPU’. Please consider changing the targeted processor
architecture to one of the following: ‘x86, x64, ARM’ (if you are using command line this could be done by adding ‘–a
rchs’ parameter, for example: ‘cordova build windows –archs=x64’). C:\APPV1\platforms\windows\plugins\com.msopentech.w
Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1

Yes, this is new! In earlier builds for windows, or any platform we do not need to specify additional parameters. But when you are creating a Windows 10 build you need to specify exclusively that whether the build is going to be used on a 32 bit machine, or a 64 bit machine. That means no generic universal build can be created for Windows 10.  We are still learning about what will the best approach to create builds/installers for that. As of now, when we specify something as

cordova build windows --archs=x64

This creates the build perfectly, and the solution generated works flawlessly on VS 2015. (you might need to sign in to your developer account to prevent any sign-in/certificate issues)

But this whole process has quite a good learning curve , specially about the obstacles of getting the tools and dependencies installed and getting your first build. But at the end of the day, all worked out, and I am looking forward to more community updates on Windows 10 and cordova as this looks promising!

Stay connected!


Solution : httpd: apr_sockaddr_info_get() failed for ip-xxx-xx-x-xxx

After a fresh install of Apache on a Centos machine I was getting this error.

Starting httpd: httpd: apr_sockaddr_info_get() failed for ip-xxx-xx-x-xxx
httpd: Could not reliably determine the server’s fully qualified domain name, using for ServerName

Nothing critical, the IP was still accesing the PHP pages. But we can remove the above warning messages by:

  1. Open the httpd.conf file
sudo nano /etc/httpd/conf/httpd.conf

2. Search the string : ServerName ( Ctrl + W)

3. Add/update the ServerName to


4. Restart apache.

sudo service httpd restart

And it shows ,

Stopping httpd: [ OK ]
Starting httpd: [ OK ]

Yeah, learnt something new 🙂

Removing mysql from ubuntu

Below are the steps to remove mysql from ubuntu (it also works when you do not have the mysql root password)

The commands worked fine with Ubuntu LTS 12.0.4 and and mysql 5.5

sudo service mysql stop  #or mysqld
sudo killall -9 mysql
sudo killall -9 mysqld
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo deluser mysql
sudo rm -rf /var/lib/mysql
sudo apt-get purge mysql-server-core-5.5
sudo apt-get purge mysql-client-core-5.5

Have a great day!

Ref: StackOverflow

So Many Things to Learn.. So Less Time!

Back to serious blogging Eh!

Times are changing and I am part of the evolution. The roller coaster rides are now becoming my addiction. I want to do everything at the same time.

A great thing happened last month. I was gifted a 3 months subscription from a client for learning purpose. Now that is something I really liked a lot.

Yet to activate the subscription, I want to use it as much as possible to learn everything. Literally everything.

Are you planning to get something for me? My wishlist is below.

1. Macbook Pro (Latest version, core i7)

2. iPhone (Latest version, 32GB/64GB)

3. Lots of credits on learning sites.

4. Trip to Goa

5. Frequent flyer schemes


7. Europe trip.

and the list goes on…!






The site kinda looks empty as of now. Time to fill in the gaps!