cancel
Showing results for 
Search instead for 
Did you mean: 

Push Notification in Fiori client for Android devices not working

christian102094
Participant

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/CT...

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

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.

christian102094
Participant
0 Kudos

Yes, I have received notifications in Android some days ago.

For tests, I have used only Postman and the Push desk in SCP Mobile Services.

Just to clarify the event log and the technical log of a successful notification:

Event log - Success:

Technical log - Success:

And a failed notification:

Event log - Fail

Technical log - Fail

christian102094
Participant
0 Kudos

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!