Want to harness all the power that Liferay Portal offers from your mobile apps? Thanks to Liferay’s Mobile SDK, you can do just that. The Liferay Mobile SDK provides a way to streamline consuming Liferay core web services, Liferay utilities, and custom portlet web services. It’s a low-level layer that wraps Liferay JSON web services, making them easy to call in native mobile apps. It takes care of authentication, makes HTTP requests (synchronously or asynchronously), parses JSON results, and handles server-side exceptions so you can concentrate on using the services in your app. The Liferay Mobile SDK bridges the gap between your native app and Liferay services. The official project page gives you access to the SDK releases, provides the latest SDK news, and has forums for you to engage in mobile app development discussions. The Liferay Mobile SDK is available as separate downloads for Android and iOS, and is compatible with Liferay Portal 6.2 and later.

mobile-sdk-diagram.png

Figure 1: Liferay’s Mobile SDK enables your native app to communicate with Liferay.

There are two different types of Mobile SDKs that you need to add to your app’s project, depending on the remote services you need to call. Liferay’s prebuilt Mobile SDK includes the classes required to construct remote service calls in general. It also contains the classes required to call the specific remote services of Liferay’s core portlets. Core portlets are included with every Liferay installation (these are also referred to as out-of-the-box or built-in portlets). However, you need to build an additional Mobile SDK if you want to leverage your custom portlet’s remote services. Once built, this Mobile SDK contains only the classes required to call those services. Therefore, you must install it in your app alongside Liferay’s prebuilt Mobile SDK to leverage your custom portlet’s remote services.

Note that Liferay also provides Liferay Screens for constructing mobile apps that connect to Liferay. Screens uses components called Screenlets to leverage and abstract the Mobile SDK’s low-level service calls. However, if there’s not a screenlet for your use case, or you need more control over the service call, then you may want to use the Mobile SDK directly. You should read the Screens tutorials in addition to the Mobile SDK tutorials here to decide which better fits your needs.

This section’s tutorials cover using the Mobile SDK in Android and iOS app development. The following tutorials introduce these topics and are followed by in-depth tutorials on each:

In addition, the following tutorial covers building Mobile SDKs to support your custom portlet services:

Fasten your seatbelt–it’s time to go mobile with Liferay’s Mobile SDK!

Related Topics:

Creating Android Apps that Use Liferay

Creating iOS Apps that Use Liferay

Displaying Site Pages to Mobile Devices

Service Builder and Services

Creating Android Apps that Use Liferay

The Liferay Mobile SDK provides a way to streamline consuming Liferay core web services, Liferay utilities, and custom portlet web services. It wraps Liferay JSON web services, making them easy to...

Read More

Making Liferay and Custom Portlet Services Available in Your Android App

You must install the correct Mobile SDKs in your Android project to call the remote services you need in your app. You should first install Liferay’s prebuilt Mobile SDK. This is required for any...

Read More

Invoking Liferay Services in Your Android App

Once the appropriate Mobile SDKs are set up in your Android project, you can access and invoke Liferay services in your app. The basic steps for doing this are listed here: Create a session. Import...

Read More

Invoking Services Asynchronously from Your Android App

Android doesn’t allow synchronous HTTP requests to be made from the main UI thread. You can use Android’s AsyncTask to make synchronous requests from threads other than the main UI thread. If you...

Read More

Sending Your Android App’s Requests Using Batch Processing

The Mobile SDK also allows sending requests in batch. This can be much more efficient than sending separate requests. For example, suppose you want to delete ten blog entries in a site’s Blogs...

Read More

Creating iOS Apps that Use Liferay

The Liferay Mobile SDK provides a way to streamline consuming Liferay core web services, Liferay utilities, and custom portlet web services. It wraps Liferay JSON web services, making them easy to...

Read More

Making Liferay and Custom Portlet Services Available in Your iOS App

Your iOS app is no doubt pretty great, or at least off to a great start. Now you want it to access Liferay services. How do you accomplish this? Use Liferay’s iOS Mobile SDK, of course! You must...

Read More

Invoking Liferay Services in Your iOS App

Once the appropriate Mobile SDKs are set up in your iOS project, you can access and invoke Liferay services in your app. The basic steps for doing this are listed here: Create a session. Import the...

Read More

Invoking Services Asynchronously from Your iOS App

The main drawback of using synchronous requests from your app is that each request must terminate before another can begin. If you’re sending a large number of synchronous requests, performance...

Read More

Sending Your iOS App’s Requests Using Batch Processing

The Mobile SDK also allows sending requests in batch. This can be much more efficient than sending separate requests. For example, suppose you want to delete ten blog entries in a site’s Blogs...

Read More

Building Mobile SDKs

The Liferay Mobile SDK is great for letting you connect your mobile apps to a Liferay instance. By accessing Liferay services through Liferay’s prebuilt Mobile SDK, your apps can access the data...

Read More
0 (0 Votes)
Using Custom Cells with List Screenlets Previous