Today we will demonstrate part two of the XTIVIA Mobile Demo application for Android. If you haven’t watched part one you should check it out by clicking here. Since the last video we have added several new features that will be covered:

  • Revamped article listing that includes a thumbnail image and the author’s avatar
  • Categories, category filtering and category subscriptions
  • Push notifications using Liferay Push!

Liferay Enterprise Portal has delivered a new tool, Liferay Push, that allows us to keep users informed using push notifications. One advantage of this is the ability to send the notifications from within the Liferay ecosystem. No integration with 3rd party solutions like Parse or Urban Airship is necessary. Liferay Push is not some custom push notification service, but a middleman that handles all of the communications to Google Cloud Messaging (GCM for Android) and Apple Push Notification System (APNS for Apple).

  1. The user’s device is registered with Liferay Push (on your Liferay server)
  2. You send out push notifications from custom portlets, services, etc using familiar Liferay APIs
  3. Liferay Push handles all of the registration and communication to GCM or APNS to handle the push notifications
  4. The user receives a feature-rich notification on their mobile device
Our implementation of Liferay Push takes advantage of regular notifications and expanded notifications. The expanded notifications include additional information like the thumbnail image, author, categories and more. Below you can see screenshots of the expanded notification and also Android Wear notifications.
6. Expanded Notification  8. Android Wear Notification
The articles list view is using Android’s recycler view for the list view and Android’s card view for the individual rows in the list. These implementations, vs. the older list view, use less memory and fit more with the material design as well as Google’s best practice recommendations.  You can see a couple screenshots of the new article list view below.
1. Articles List #1  2. Articles List #2
I hope you enjoyed the video. Soon there may be a part 3 with even more cool features to show off!
Share This