Thursday 13 October 2011 4:21:48 pm
eZ Publish is a Web Content Management System that provides a platform to publish content via any channel. Its powerful presentation engine enables you to create websites and pages that display your content in a variety of renderings. Its powerful API directly and simply integrates your content with any web-enabled application on any device, such as the iPad, iPhone, or an Android device, without ever interfering with, or impacting the platform itself.
At the end of this tutorial, you will have learnt the basics of mobile application development for both iOS and Android platforms, consuming content from eZ Publish. CMS-side adjustments for the mobile channel will be acquired too. This cheatsheet will help you leverage the multichannel capabilities of eZ Publish, and its REST API in future projects, in a more systematic fashion.
This article is the second in a two-part series. The first article introduced the foundational concepts for mobile web development with eZ Publish by showing how to create a mobile siteaccess as well as basic apps that act as simple wrappers for that siteaccess. This document focuses on creating native mobile applications that communicate with eZ Publish via a REST interface.
Native applications are applications designed to work on a specific device such as an iPhone or BlackBerry. Users download these applications from an app store or through an internal enterprise program. The main advantage of native applications is that they offer access to built-in device features such as cameras or GPS functionality. Native applications often perform better than other types of apps, as they live on the device itself. These applications can also present unique marketing opportunities if they are distributed via an app store.
Hybrid applications access the mobile website (which is also accessible through a URL outside of the app) through an app, bringing together features of both web and native applications. They are downloaded via an app store and look and feel like a native application, although they are simply displaying the mobile website. The main advantage of a hybrid application over a native application is that a consistent user experience can be enjoyed by a wider audience (via the mobile URL) while still making the most of the marketing opportunities presented by app store distribution. Changes are made on the web application end rather than requiring the user to perform the update manually via the app store.
This guideline is aimed at eZ Publish developers, partners, and integrators who need to build and native mobile applications that communicate with the eZ Publish REST interface. It outlines the steps required to create web service enabled native mobile applications for eZ Publish. The instructions described herein assume that you have already set up eZ Publish 4.5 or higher. It is recommended that you read the eZ Publish REST API documentation, as the focus of this article is not to explain all of the details of the interface, but to show how to connect a mobile application to it. You should also be familiar with some basics about setting up an iOS or Android application, although anybody should be able to copy and paste the code examples to create a working application.