Blogs
Hello, community! We would like to announce Liferay Push, our new framework for sending push notifications from Liferay Portal to your mobile apps.
Push notifications is a technology that allows servers to broadcast messages to mobile devices. Instead of having your app poll the server for new messages every few seconds (that drains your phone battery and your monthly data plan!), your app can just wait for notifications from the server. Your app will be notified even when it's not running, the system will wake it up.
Engaging your audience
Say you've developed your own company newsletter portlet and its corresponding mobile app for your customers. You can use Liferay Push to notify users on their mobile devices whenever a new post is published. That way your users will always be up-to-date without ever needing to open their app and refresh it.
Push notifications are usually associated with the notifications you receive on your phone notifications center but push notifications offer much more than that. With Liferay Push you can update the content on your apps or update its local database as change happen.
Currently, Liferay Push supports two push notification providers: Google and Apple. However, Liferay Push can be extended to support more platforms as needed. Liferay Push allows each user to register one or more devices. Liferay Push will query for the registered devices, identify if the user is using an Android or iOS device and send the notification to the right provider. Notifications can be sent to one or many users.
How does it work?
Here are some diagrams that explain how Liferay Push works:
-
Your phone app must register the user’s device to the portal.
2. Once a user’s devices are registered, your portlet or plugin can send notifications to them.
Liferay Push provides both server side and client side APIs (Android and iOS). It will help to get up to speed and make it easier to support push notifications in your apps.
Liferay Push is now available at the Liferay Marketplace as a Liferay Labs app. Check out the documentation and give us feedback!