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 ofpushnotifications
)