An HTML, CSS And JavaScript Foundation For Mobile Development Of course, development of plugins assumes familiarity with the native platform on which the plugin is to be supported. PhoneGap also publishes documentation and examples on how to write your own plugins. We’ll see these later on in this article. Some command-line tools are also provided to make it easy to add the plugins to the repository for your project. A registry has been created for all plugins compatible with PhoneGap 3. With the arrival of PhoneGap 3, a new plugin architecture has resulted in the old repository being deprecated. In previous versions of PhoneGap, a GitHub repository contained a set of prebuilt plugins. If these capabilities aren’t enough, PhoneGap may be extended with plugins that enable the developer to access more device features, including these: PhoneGap comes complete with plugins to support device capabilities such as the following:Ī full list of capabilities for each platform is available on PhoneGap’s website. PhoneGap has a bridging mechanism that allows JavaScript running in the Web view to invoke native code contained in the application. This is required because the Web view in an application does not inherently support many device features, such as access to the file system or the camera. PhoneGap essentially wraps a Web view of your HTML, CSS and JavaScript in a native application. Plugins: Closing The Gap On Native Features This issue is covered in detail in the section below on multi-platform considerations. While you can style the controls differently on each platform, take care in doing this. As such, the content will appear nearly identical on each platform, much as any Web page would. PhoneGap supports a wide variety of platforms:įor this article, we’ll focus on getting our sample FasTip application running on iOS and Android:Īs with the previous articles in this series, all of the code for our application may be obtained from a GitHub repository.Īpplications built with PhoneGap use the mobile platform’s Web view to render content. PhoneGap’s development tools then bundle the HTML, CSS and JavaScript files into platform-specific deployment packages. The developer accomplishes this largely by writing the user interface portion of their application with Web technologies such as HTML, CSS and JavaScript. As with the previous articles in this series, all of the code for our application may be obtained from a GitHub repository.Īdobe’s PhoneGap platform enables a developer to create an app that runs on a variety of mobile devices. In this article, Peter Traeg will create a multi-platform solution using PhoneGap. In previous articles, we examined how to build a native iOS and native Android tip calculator. This is the third installment in a series covering four ways to develop a mobile application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |