Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-74306

Push notification from Liferay not reaching to Apple/Android devices

    Details

    • Branch Version/s:
      7.0.x, 6.2.x
    • Backported to Branch:
      Committed

      Description

      References this issue: https://issues.liferay.com/browse/LPP-26755

      DESCRIPTION

      Liferay Push 2.2.0 fails to send either Apple Push Notification or Android Push Notification (GCM / FCM) using the methods below.
      STEPS TO REPRODUCE
      Liferay Push - Version: 2.2.0

      Assumptions for all test cases:

      • Make sure that the iOS certificate is installed on Liferay (with Password / p12 file).
      • Make sure that the configuration file for Android is created from google and incorporated in Android. Make sure that the server API key is saved on the portlet for Firebase.

      A. Steps to replicate (iOS successful / Android Empty Payload):
      1. Make sure that the device tokens for Apple and Firebase are generated and stored in Configuration -> Push Notification -> Device
      2. Goto Configuration -> Push Notification -> Send Test Push. Type a message hit send.
      3. The message is successfully delivered to iPhone (Apple) with correct content.
      4. The message is delivered to Android with Empty Payload.

      B. Steps to replicate (Android Payload Delivered / No iOS Message Received):
      1. Make sure that the device tokens for Apple and Firebase are generated and stored in Configuration -> Push Notification -> Device
      2. Goto JSON Web Service -> Push Notification -> sendPushNotification (For Example: http://34.209.10.176:8090/api/jsonws?contextName=pushnotifications&signature=%2Fpushnotifications.pushnotificationsdevice%2Fsend-push-notification-2-toUserIds-payload)
      3. Enter ["CURRENT_USER_ID"] in the field of toUserIds and a json message on the payload (For Example:

      { "message": "Hello You have one new alert" }

      ). Hit Invoke.
      4. The message is successfully delivered to Android (via Firebase) with correct payload.
      5. No message is shown on iOS.
      EXPECTED RESULTS
      Message shown on both iOS and Android devices in both cases
      ACTUAL RESULTS
      Case a. Message shown on iOS but not Android. Case b. Message shown in Android but not iOS.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                javier.gamarra Javier Gamarra
                Reporter:
                javier.gamarra Javier Gamarra
                Participants of an Issue:
                Recent user:
                Brian Chan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 12 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.X EE
                  Master