Legacy Knowledge Base
Published Jul. 2, 2025

Push notification API unable to register

Written By

Alfonso Crisci

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How to articles!

While we make every effort to ensure this Knowledge Base is accurate,it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When trying to register a device through the Liferay Push, the following error will be received:
    error: com.liferay.portal.kernel.jsonwebservice.NoSuchJSONWebServiceExceptio
    LRPush Error Error Domain=com.liferay.mobile.sdk Code=2 "No JSON web service action with path /push-notifications-portlet.pushnotificationsdevice/add-push-notifications-device and method null for push-notifications-portlet" UserInfo={NSLocalizedFailureReason=com.liferay.portal.kernel.jsonwebservice.NoSuchJSONWebServiceException, NSLocalizedDescription=No JSON web service action with path /push-notifications-portlet.pushnotificationsdevice/add-push-notifications-device and method null for push-notifications-portlet}

Environment

  • Liferay DXP 7.0+
  • Liferay Push for DXP 7.0+

Resolution

  • Ensure to pass the version number in the push android SDK, like this:

    push.withPortalVersion(72)

    or (71), (70), depending on the DXP version.

Additional Information

  • Android SDK defaults to (62) (invokes JSON WS API URL (context): push-notifications-portlet instead of pushnotifications)
Did this article resolve your issue ?

Legacy Knowledge Base