Thursday, December 12, 2013

Phonegap introduction


In this tutorial we will discuss what is phonegap and what makes it so cool

Phonegap is a mobile development framework it was originally built by Nitobi and later was purchased by Adobe systems. Phonegap helps you to create mobile apps by making use of HTML5, javascript and CSS instead of the device specific language (Objective C, C#, Java).

The apps which are made in phonegap are called as hybrid apps, hybrid apps because the UI rendering is done as part of web and to call the native controllers like the image, camera or sqlite database etc you have access to these device specific API’s (we will talk about it later). If you are planning to use phonegap in your next project then I would suggest you to make sure that your HTML, CSS and javascript skills are clean.

By using phonegap you are at the same time developing apps for multiple platforms, you can take advantage of the concept called as plugins to do device specific work in case if you do not find a device API for the same.

Example: If you just want to show a native alert in a phonegap based app, then you can write your own plugin.

The app, which uses phonegap framework, makes use of the native webview, all the styling and UI rendering is maintained with the help of CSS and javascript. Also note that phonegap is an open source framework.

The various operating system supported by phonegap are as follows:

Apple iOS
LG webOS
Windows
Symbian OS
Blackberry
Bada OS
Ubuntu touch
Android

While beginning the learning phase a question raised in my mind like whenever I search phonegap this cordova thing used to come up and it was like so confusing at the first place but finally got the answer to it.

Above I mentioned that now phonegap is owned by adobe, what adobe did later was they donated the phonegap codebase to Apache software foundation (ASF), later phonegap was renamed to Apache callback which the apache community found was not so cool so they renamed it to Cordova, Cordova hmmmm is their  a meaning in this name while yes phonegap was a project that was born in Nitobi company which was located in Cordova Street in Vancouver,well now the name makes sense.

The next question that I had in my mind was like what is the difference between phonegap and Apache Cordova?

After visiting few links I found that you could think of the apache cordova as the engine that powers a car named phonegap. To be more specific Apache cordova has a set of device level API’s with the help of which you can access the device level controllers like the accelerometer, camera, etc with the help of apache cordova you can build native mobile apps using HTML, CSS and Javascript.

Coming to phonegap now, phonegap is a distribution of apache cordova you may think of apache cordova as the heart and phonegap as arteries that supply blood to all the parts of your body. So basically that makes phonegap as the supplier of cordova and its device based API’s.

If the above example did not impress you then here’s a common example that you might have came across, you can think of cordova like the webkit which powers safari or chrome.

If you want to know more then here’s a FAQ guide from phonegap itself.

If you are planning to install cordova then please visit this link that contains simple step by step written for installation. Also you need to download the cordova source from here because to create cordova based app you need to use the command lineterminal.


I hope that i was able to clear few things regarding phonegap in the next post we will see more about it, if you have any question then feel free to mail me or leave it as a comment until then Happy iCoding and have a great day.

25 comments:

  1. The superb highly informative blog I’m about to share this with all my contacts.

    iPhone developer in Pakistan

    ReplyDelete
    Replies
    1. This comment has been removed by a blog administrator.

      Delete
  2. This is an informative blog by which I have got that info which I really wanted to get.
    iPhone developer in Pakistan

    ReplyDelete
  3. This could be probably the best framework available till now. And it nearly support all operating system. That's quite impressive now. Thanks for sharing this with us. and that FAQ section. We are a iPhone Development Company, that was quite a useful post for us. Thanks again.

    ReplyDelete
  4. Nice post Ravi. Good information for the Phonegap uninitiated.

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. Thanks for your ideas. You can also find the details on Affity Solutions, at the
    Iphone Development. The main object of the Affity Solutions is to provide quality web services and is among the
    few software development company in Nagpur.

    ReplyDelete
  7. Nice blog information you have shared. I appreciates your knowledge. your blog information is helpful. Numerous people search regularly to know Phonegap will support this or not. There is some another platform like Eclipse.

    Regards
    iPhone Development Company

    ReplyDelete
  8. No Doubt, PhoneGap is best framework in which iphone apps have developed to use these PhoneGap .this help you create Mobile App Design to use HTML5, JavaScript and CSS languages.

    ReplyDelete
  9. This is a great article but very debatable. Im going to say that Steve Jobs absolutely loves the App store simply because it has been such a huge part of the iPhones success. It has made the iPhone so much more appealing simply because of all the awesome apps that developers top gadgets reviews online have created for Steve Jobs phone, the iPhone.

    ReplyDelete
  10. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often..........


    Phone Mail Repair In Manchester | Iphone Unlock In Manchester

    ReplyDelete
  11. Thank you so much for share such a wonderful article.I like the way of writing and presenting.It is very helpful my writing.Waiting for new stuff.

    Cheap essay writing service

    ReplyDelete
  12. Wholesale iPhone genuine parts & fix iphone issues to solve your iphone device problem from focusupply.com at affordable cost price.
    iphone service

    ReplyDelete
  13. Why do Celebrities prefer the iPhone over Android? | Smartphone Reviews and Tablet Reviews
    Why So Many Celebrities prefer the iPhone! It seems a little crazy at times that so many celebritie...
    Celebrity iPhone users

    ReplyDelete
  14. Find wholesale iphone repair parts for all sizes & models from leading supplier focusupply.com in china with genuine product parts at reasonable price.
    iphone replacement parts

    ReplyDelete
  15. It's good that The app, which uses phonegap framework, makes use of the native webview, all the styling and UI rendering is maintained with the help of CSS and javascript.

    Thanks,
    Wooden iPhone 6 Cases in USA

    ReplyDelete
  16. Here they say that Phonegap has a number of disadvantages like lack of UI widgets, pure performance and so on.

    ReplyDelete
  17. Yes definitely this type of blogs are really help for people great job.
    iphone for sale

    ReplyDelete

  18. ऐपल ने तीन दिन में बेचे 1 लाख आईफोन
    Readmore Todaynews18.com https://goo.gl/oliOwx

    ReplyDelete
  19. yeah!!! l like your way of presentation. Thanks for sharing this useful info. Keep updating same way..Visit Here: IOS Applications Development in Bangalore.

    ReplyDelete
  20. I wanna thanks to a great extent for providing such informative and qualitative material therefore often.

    buy iPhone cases online

    ReplyDelete