BT

Your opinion matters! Please fill in the InfoQ Survey!

Drupal Integration with Native iOS and Android Apps

| by Sergio De Simone Follow 5 Followers on Jun 30, 2014. Estimated reading time: 1 minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

At latest Drupal Conference in Austin, TX, mobile and web development company Lemberg has introduced a native Drupal 8 software development kit. Lemberg's SDK aims at making it easier for developers to handle the communication between a native mobile app and a Drupal website. The SDK is currently available only for iOS and Android, while the Windows Phone version should be coming soon.

The SDK can handle the following tasks:

  • Get data from the CMS quickly without instant setup of HTTP client, parsers and data storage.
  • Manage CMS data via simple API calls (add/edit/delete).

Other features that are on Lemberg's roadmap are:

  • Transparent data caching to support offline mode.
  • Automatic background data updating depending on the configuration.
  • Background image downloading.

As an example of the API, this is how it is possible to pull a BlogPage object from the server:

BlogPage *bp = [BlogPage new];
bp.page = @(1);
[bp pullFromServer:^(NSArray *result) {
    if (result) {
        //  Do something with an array of BlogPostPreview objects
    }
}];

The SDK is available on github under the MIT license.

A preexisting alternative to Lemberg's SDK, though only available for the iOS platform, is the Drupal iOS Software Development Kit developed by Kyle Browning, director of mobile at WorkHabit.

Browning's SDK provides a layer of abstraction on top of networking framework AFNetworking for working with Drupal nodes, files, users, and views. Besides supporting a RESTful view of Drupal entities, developers "can dynamically change what content you can create from your app, via configuration on your Drupal site. You can reorder your forms, just like you do with the regular Forms API...," says Browning.

Building a native mobile app gives a few advantages that mobile web applications don't have, i.e., distribution through mobile app stores and access to native functionality.

Furthermore, as noted in Drupal community blog, Drupal can be used as the backend for mobile application development and host user content, business logic, user management, and search functionality. The availability of a native SDK can make it easier to build apps as front ende that talk to a Drupal backend. According to Wikipedia, Drupal is used as a back-end framework for at least 2.1% of all websites worldwide.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT