Saturday, August 1, 2015

Cordova 5 what a PhoneGap developer needs to know

     A complete change this Cordova 5 for a PhoneGap  developer


Apache Cordova is an open-source mobile development framework. It allows the PhoneGap developer (or Cordova developer) to use standard web technologies such as JavaScript for cross-platform development, avoiding each mobile platforms' native development language. Applications execute within wrappers targeted to each platform, and rely on standards-compliant API bindings to access each device's sensors, data, and network status.

Apache Cordova graduated in October 2012 as a top level project within the Apache Software Foundation (ASF). Through the ASF, future Cordova development will ensure open stewardship of the project. It will always remain free and open source under the Apache License, Version 2.0. Visit cordova.apache.org for more information.

Cross-platform (CLI) workflow
Use this workflow if you want your app to run on as many different mobile operating systems as possible, with little need for platform-specific development. This workflow centers around the cordova utility, otherwise known as the Cordova CLI, that was introduced with Cordova 3.0. The CLI is a high-level tool that allows you to build projects for many platforms at once, abstracting away much of the functionality of lower-level shell scripts. The CLI copies a common set of web assets into subdirectories for each mobile platform, makes any necessary configuration changes for each, runs build scripts to generate application binaries. The CLI also provides a common interface to apply plugins to your app. For more details on the CLI, see The Command-Line Interface. Unless you, the PhoneGap developer have a need for the platform-centered workflow, the cross-platform workflow is recommended.

Release highlights a PhoneGap developer needs to know:

Plugins have been renamed and the Cordova-CLI now supports fetching plugins from npm. We highly recommend reading about it in the plugins release blog post.<feature> tags have been renamed to <plugin> tags in your projects config.xml. Adding a <plugin> tag to your config.xml will fetch and install it on cordova prepareif it isn’t already installed.

Cordova Android@4.0.0 has been released and pinned as the default version for new projects. This includes support for pluggable WebViews! Read about it in the Android 4.0.0 release blog post.
  • Template app, Cordova App Hello World, has been moved to npm.
  • Added the ability to manage your plugin and platform dependencies in your project’sconfig.xml. When adding plugins or platforms, use the --save flag to add them toconfig.xml. Ex: cordova platform add android --save. Existing projects can usecordova plugin save and cordova platform save commands to save all previously installed plugins and platforms into your project’s config.xml. Platforms and plugins will be auto restored when cordova prepare is run. This allows developers to easily manage and share their dependencies among different PhoneGap development environments and with their coworkers.
  • The whitelist plugin and its security ramifications-the need to specify all external sources.Sample tags  Access to all the subdomains on google.com, for example mail.google.com and docs.google.com:
  • origin="http://*.google.com" />
  • CSP  the Content Security policy and the meta tag ( as per MozillaContent Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware.Sample meta tag being:-
  •     
  •       content="default-src *;
  •                script-src * 'unsafe-inline' 'unsafe-eval'
  •                            127.0.0.1:*
  •   http://*.google.com
  •   https://*.google.com
  •                            http://*.gstatic.com
  •                            http://*.googleapis.com
  •                            https://*.gstatic.com
  •                            https://*.googleapis.com
  •     http://www.webprogr.com
  •             http://*.revmob.com
  •                            ;
  •                style-src  * 'unsafe-inline'
  •                            127.0.0.1
  •   http://*.google.com
  •   https://*.google.com
  •                            http://*.gstatic.com
  •                            http://*.googleapis.com
  •                            https://*.gstatic.com
  •                            https://*.googleapis
  •     http://www.webprogr.com
  •    https://*.revmob.com
  • ;
  • frame-src  *
  • "
  • >
The best way to debug continue to be Android Studio's monitor.bat but the earlier nice tag usage adb logcat CordovaLog:D *:S no longer works as they have replaced CordovaLog with 'Web Console' and these two words(why?) cause problem with grep.

The main problem is that not all plugins have been updated especially advertising,billing, Google analytics etc. And the PhoneGap developer would be at his wits end as Android Studio would refuse to compile what with the shenanigans of the constantly revised Google Play services versions!

Of course things are improving very fast daily with the smart people at Adobe, Apache, IBM and Google at work on the framework.

46 comments:

  1. Which Programming Languages are Used to Develop Android/ios ...
    dreamr in manchester

    ReplyDelete
  2. Thank you for another essential blog. Where else could anyone get that kind of information in such a complete way of writing? I have a presentation incoming week, and I am on the lookout for such information. Mobile App Maker in Mumbai || Mobile App Maker Company in Mumbai || App Developers in Mumbai || Mobile App Developers in Mumbai || Mobile App Development Companies in Mumbai || Mobile Application Development Companies in Mumbai

    ReplyDelete


  3. Very niche post! Saved to Evernote so I can make this part of mobile app development process.

    Thanks!
    mobile app development

    ReplyDelete
  4. Thanks for the information you shared that's so useful and quite informative and i have got some useful information from your blog.
    Mobile Device Management

    ReplyDelete
  5. Greetings! Your blog is really very nice, if you get a chance by posting such post, I’ll write comment for you again!
    app development companies

    ReplyDelete
  6. I have been reading your posts regularly. I need to say that you are doing a fantastic job. Please keep up the great work.
    mobile application development

    ReplyDelete
  7. we will provide you the best app as per your requirement. it would be fully responsive with all type of mobile devices. app would be fully functional.Mobile Application Development

    ReplyDelete
  8. Your blog explaining all the main points very awesomely. Thanks for sharing this knowledgeable post
    app development companies

    ReplyDelete
  9. Wow! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?
    capa tpu ou silicone

    ReplyDelete
  10. You can always get in touch with Jain Technosoft, the best SEO company Bangalore for all your SEO requirements and assistance – whether now or the future!
    Web Design in Bangalore | SEO experts Bangalore

    ReplyDelete
  11. Thank you for the helpful post. I found your blog with Google and I will start following. Hope to see new blogs soon.
    cell phone spying

    ReplyDelete
  12. If you aгe going foг most excellent cοntents
    like myself, sіmply visit thiѕ website : android app development companies in Bangalore
    every ԁаy as it provides qualitу contentѕ, thanκs

    ReplyDelete
  13. Thanks for the great article. I want to share with you one great android mobile App development in California , USA.
    Visit: www.hvantagetechnologies.com

    ReplyDelete
  14. Thankyou! Very well written article.
    Yberry Infosystem is a professional IT Development Company in India offering Mobile Application Development,Web Application Development. Ecommerce services, branding designing, graphics design as well as SEO solutions. Visit: www.yberryinfosystem.com

    ReplyDelete
  15. well post Vendorzapp provides Mobile apps for small business, Ecommerce android apps development India, iOS ecommerce apps development, Ecommerce website Pune, Ready ecommerce website and apps. Android ecommerce apps then visit now Ecommerce android apps India, iOS ecommerce apps development, ecommerce website for small business call us +91-9850889625

    ReplyDelete
  16. Suma Soft delivers Mobile Application Development Services to IT & ITES industries. Our Mobile Application Development processes rely on continuous testing procedures to verify and fix software bugs efficiently

    ReplyDelete
  17. Aura - Get the best mobile application software for your business authority.

    Web Design Company

    ReplyDelete
  18. Nice Blog!!
    Xantatech is a Web Development company. We offer a complete solution, includes project scoping, wireframing, design, development, testing, support and hosting.

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. TipEnter is leading best mobile app development company India provides suitable iPhone, Android Mobile application and Web Development packages here.We offer a complete solution, includes project scoping, wireframing, design, development, testing, support and hosting. Contact us TipenterTechnologies.

    ReplyDelete

  21. Great post. Keep it up. Thanks for advice. It is wonderful information for me. Website Design Company Bangalor | Web Development Company Bangalore

    ReplyDelete
  22. Very interesting article for readers, It is providing complete details in a easiest way. Really liked it.

    Now development companies buffalo ny service is available from Crystal Tech Solution with professionalism.

    ReplyDelete
  23. Thanks for sharing this information I really enjoyed reading this article
    We are one of the most trusted Android Mobile App Developmentand IOS application development to meet your business complex requirement through offshore world.
    Do you have project and want to discuss with us ?
    We can assist you in Web Application Development, Mobile App development, Games Development & Emerging Technology.

    ReplyDelete
  24. Great blog! I really love how it is easy on my eyes and the information are well written. I am wondering how I might be notified whenever a new post has been made.
    I have subscribed to your feed which really should do the trick! Have a nice day! We provide you Web Development Company Chicago support and
    service..

    Chicago web Design
    Web design Company
    Web Development Company Chicago
    Web development Chicago
    Content Writing Chicago

    ReplyDelete
  25. Nice blog Content. It is very informative and helpful. Please share more content. Thanks.
    Android course in Delhi

    ReplyDelete
  26. Your blog is so nice, and the article is very good it helps to so many people.
    iOS Application Development Training in Ameerpet, Hyderabad

    ReplyDelete
  27. nice article! very useful information. Keep sharing this kind of valuable blogs regularly. –xtensible software tachnologies click here

    ReplyDelete
  28. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    https://tabsquareinfotech.com/website/best-it-company-in-chennai.php

    ReplyDelete
  29. Thanks for sharing this kind of useful information. Codevian Technologies is a professional PHP development company . We provide our services and best results to our customers. We bring great websites and web application of every size to our clients. We transform your dream projects into reality. Codevian Technologies is the right place to hire php developers. Please feel free to call us on +91 9225108952 or contact by email at sales@codevian.com, if you require any additional information. Please visit our website www.codevian.com.com

    ReplyDelete
  30. It wоuld be very іnсоnvеnіеnt rаthеr іnеffісіеnt to hаndlе records as easily and effectively on уоur PC/MAC wіthоut Microsoft office , Now if a ѕоftwаrе расkаgе іѕ thаt іmроrtаnt tо a client, іt must bе соnvеnіеnt tо knоw about іt and learn hоw to introduce іtѕ setup document. if you have any need customer support then contact us.
    office/setup

    ReplyDelete
  31. Appreciating the persistence you put into your blog and detailed information you provide.

    Selenium Training in chennai | selenium

    ReplyDelete
  32.  I appreciate your efforts of writing this blog content, it’s really a beneficial and informative post. Good work!! Keep going on.
    PhoneGap Development Company Texas

    Hire PhoneGap Developers

    ReplyDelete
  33. Get simple ways for downloading, installing, activating, and re-installing the Microsoft Office Suite. Get assistance from the expert, you can visit here Office.com/setup.
    Office.com/setup
    Office.com/setup

    ReplyDelete
  34. We are the most confided in outsider MS Office setup bolster supplier and we have a mastery in giving quick and solid answers for all your office.com/setup related issues.
    office.com/setup

    ReplyDelete
  35. Get free notification of all India Government Jobs 2020 and its job vacancies across sectors in India like Railways, Banking Employment in India, Universities, College Govt Jobs, Teaching, Schools in India, Financial Institutions 2020, Defense, SSC, Agriculture and many more India Government Jobs.Visit: https://www.governmentjobseeker.com

    ReplyDelete
  36. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site. For more info:- Phonegap App Development

    ReplyDelete