Skip to Content

Push Notification in Fiori client for Android devices not working

Hello community,

I'm sending push notifications using SAP Cloud Platform Mobile service for Development & Operations notifications REST API to an SAPUI5 app in SAP Fiori Client.

In iOS devices it works like a charm, but I cannot receive any notification in Android devices.

What I have tried:

1. Double checked Android notification settings in the Android device.

2. I have tried using the same account to log in to the Fiori Client app and it works in iOS but not in Android.

3. This is the weird part: I have used a REST Client (Postman) to send a test notification via the REST API:

https://mobile-XXXXXXX.us2.hana.ondemand.com/restnotification/application/com.everis.testapp/user/CTAPIA

where "CTAPIA" is the user id.

In the REST Client the notification works for both iOS and Android.

In the Google Chrome debugger I can see that both requests are sent correctly (201 Created):

image-49.png

4. In the log of "SAP Cloud Platform Mobile service for Development & Operations" I get this success records:

image-50.png

The only clue I have is that I got the following errors in one of the tests in Fiori Client (not sure if this causes the issue or if it's somehow related):

image-48.png

EDIT:

I did another test from Postman client and I got the following log records. The highlighted are the records missing when the notification fails.

test.png

Any help would be really appreciated.

Thanks in advance!

Christian T.

image-48.png (81.5 kB)
image-49.png (1.7 kB)
image-50.png (24.5 kB)
test.png (27.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 07, 2017 at 02:45 PM

    Can you please provide some further details or clarification?

    - did you ever receive a notification on Android?

    - are you always triggering the push messages from Postman or also other tools?

    We are checking why the two ERROR log entries are shown but they should not impact the functionality.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Markus,

      Just to tell you that the problem was that if I send the "data" field empty in the push notification request GCM doesn't send it or something like that.

      I sent "data" with some value and it successfully appeared in the Android device :)

      Thanks!