Ajax HTTPs Reuqest in iOS UIWebview

On February 24, 2016, in HTML5, by James Liu

Using Ajax to GET and POST data is general choice when we are developing hybrid applications. In my latest project, I am using cordova (phonegap) to build an iOS app with HTML5, javascript and css. In this app, all conmunication in this app will use AJAX. This approach will extremely increase the project development speed. To enhence the safety, we are using HTTPs when we are using Ajax to get and post data in our mobile apps. With AJAX, we can develop the HTML project in HTMl browsers like Chrome, Safari or Firefox. After we finish the project, we can easily deploy the whole project in iOS and Android with cordova (phonegap).
Continue reading »

Tagged with:  

Set UIWebView Content not to Scroll When Keyboard is Shown

On February 18, 2016, in iPhone iPad Object-C, by James Liu

This week, I have met a problem when I am developing a hybrid app with Cordova (Phonegap). The Cordova app is basing on UIWebView. So the whole app is build by HTML5, Javascript and CSS. Usually, UIWebView will scroll up when keyboard is shown if we click an input field or textfield focus. Therefore, all content in the UIWebView is pushing up. In most of the case, this behavior is correct. However, in my case, it becomes to be a problem. And I have to prevent UIWebView to scroll when keyboard appears.
Continue reading »

Tagged with:  

Build Android App and IOS App with Backbone and Cordova

On October 27, 2015, in HTML5, Other Online Technology, by James Liu

Most of the companies wanna to create both Android app and iOS app to cover all mobile device visitors. To save effort and time, many companies try to choose hybrid development which can create cross platform apps. The ideal result is coding once and running anywhere. Currently, there are several frameworks to help people create cross platform app, such as Cordova, Adobe Air, IONIC. The best advantage of hybrid development is that we can use HTML5, CSS and Javascript to build the native app for Android device, iOS device, Windows device, etc. Of course, not every framework use HTML and Javascript to implement the cross-platform.
Continue reading »

Tagged with:  

Create a Simple IOS App with PhoneGap (Cordova)

On August 6, 2015, in iPhone iPad Object-C, by James Liu

As the project requirement, I will start to use PhoneGap to create a IOS app from scratch. This is my first time to use PhoneGap. Here is my understand about PhoneGap. First, PhoneGap is officially renamed as Apache Cordova. It is a framework to help you create IOS app, Android app, or even Windows Phone app from HTML5 and Javascript. For people who knows HTML5 and Javascript, this is a great tool to help to create native apps from HTML and JS. In this article, I will tell you how to create an IOS app by PhoneGap (Cordova) from beginning.

Continue reading »

Tagged with:  
Weboy