Monday, January 22, 2018

Error MSB3073 The command "node "prebuild-81.js"" exited with code 1

This happens when you trying to build your cordova project without all required files. In my project I had delete the index.html file accidentally. So I have two tips to fix this problem.

1. Check for all required files of your cordova project.
2. Remove read-only attribute from your project folder.




 

Windows 10 screen suddenly got black and white



Well ... You just found a short-cut to make your screen black and white. So press 

Windows + CTRL + C

to get your screen colors back.



Tuesday, November 28, 2017

Cordova file transfer plugin not working windows 10 - Update


Found a new reason for this problem. Every time I had this issue I had open season in fiddler software. Once I closed fiddler the issue was gone.

Sunday, November 5, 2017

Apache cordova scroll bar lagging on Android and iOS devices


When its come to developing hybrid mobile applications, Apache Cordova is amazing free  development tool which is supported by most popular IDE's like Microsoft Visual Studio. For more details about the Microsoft Visual Studio tools for apache cordova  please follow the link bellow.

https://www.visualstudio.com/vs/cordova/


In this article I assume that the reader is a cordova developer, and I'm not going to teach you  the basics for that there are millions of articles  you can find in web.

So if you are using jQuery, jQuery UI and row java scripts with apache cordova it's still ok if you developing some demo project or a pretty simple app.

But for  a commercial level project you must use Angular JS or higher angular version ( IONIC Framework - Extended version of cordova ) to get better user experience.

I have no offence towards to jQuery and jQuery UI as they are still great tools. But when it's come to hybrid application development Angular perform lot better than jQuery or jQuery UI.

Tuesday, October 31, 2017

Cancel NORD VPN and get the refund.


Recently I purchased nord-vpn for testing. But I could not use their service due to a technical reason. So I wanted to cancel and get my money back. In their website they don't have any user interface to do such an operation. So only way to cancel nord-vpn is to contact them via Email. 

1. Send an email to support@nordvpn.com saying that you need to cancel nord-vpn and get your money back,

2. They will reply you and ask the reason for cancellation.

3. Reply back with your reason and said you want your money back.

** You only have 30 days to get money back option and if you purchase via itunes they cant refund your money.


Sunday, October 15, 2017

Angular JS drop-down first options vs jQuery UI.


Hi All

Recently I had an issue with angular-js dropdown  which had ng-repeat to load it's options from a web service. Problem was I always could see an empty option even if I dont need that empty option. I needed to show the first real option to my users.

So I googled and see lot of answers but non of them did not work for me. My case was really rare.
My app was kind of converted app from jquery mobile to angular. So I had some jQuery mobile reference as well. Also I realised that my drop down had jquery mobile styles as well.

So all I did was removing all references to jQuery mobile js and jQuery mobile css. So everything works now.


So the conclusion is 

1. If you have any problems with angular data-bindings please remove jquery mobile references.



Removing click delays in iOS - apache cordova apps


 I started to use Angular JS in cordova for iOS. Every thing was perfect except I experienced a delay in response to ng-click function. In windows and android I did not see that delay.

Finally after we searches I found the solutions  You just need to include the fast click library from bellow url.


 https://github.com/ftlabs/fastclick 

Now if you using winstore-js-compact.js to fixed problems with angular in windows environment you cant refer fast-click library as a direct javascript reference. Instead of that add your script as follows.

       if (cordova.platformId == "ios") {
            /*  Add fast-click.j's content  to here */
       }