legacy-knowledge-base
公開されました Jul. 2, 2025

プッシュ通知APIの登録ができない

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

learn-legacy-article-disclaimer-text

問題

  • Liferay Pushでデバイスを登録しようとすると、以下のようなエラーが発生します。
    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}

環境への配慮

  • ライフレイDXP 7.0
  • LiferayはDXP 7.0のためのプッシュ

決議

  • このように、プッシュ型アンドロイドSDKにバージョン番号を渡すようにします。

    push.withPortalVersion(72)

    または (71), (70)、DXP のバージョンによって異なります。

追加情報

  • Android SDKのデフォルトは (62) (JSON WS APIのURL(コンテキスト)を呼び出す)です。 pushnotificationsの代わりに push-notifications-portlet を呼び出します。)
did-this-article-resolve-your-issue

legacy-knowledge-base