Message Boards

Send notification from liferay to android devices.

reda zejli, modified 7 Years ago.

Send notification from liferay to android devices.

New Member Posts: 10 Join Date: 9/1/16 Recent Posts
Hey everyOne ,

I am developping a bookstore portlet and I want to send notification after the add of a new book.
I find that I all need to do is calling :
PushNotificationsDeviceLocalServiceUtil.sendPushNotification(ids, jsonObject);

But my problem is that what is the way to implement the push notification portlet in my bookstore portlet ..so PushNotificationsDeviceLocalServiceUtil will be recognized and accessible frm my portlet.
reda zejli, modified 7 Years ago.

RE: Send notification from liferay to android devices.

New Member Posts: 10 Join Date: 9/1/16 Recent Posts
Hello Everyone,

So I've solved it on my own all I had to do is to add liferay push notification on my pom.xml
<dependency>
<groupId>com.liferay</groupId>
<artifactId>push-notifications</artifactId>
<version>1.3.0</version>
<scope>compile</scope>
</dependency>

After that eclipse creates the jar path in my m2 repository and I picked the jar file from tomcat webapps and paste it in the exact repository in maven and rename it.
And everything is fine.
thumbnail
Javier Gamarra, modified 7 Years ago.

RE: Send notification from liferay to android devices.

Expert Posts: 348 Join Date: 2/12/15 Recent Posts
I'm glad you solved it emoticon