Push notifications stuck in "Pending"

P-Rudenko-SN
ServiceNow Employee
ServiceNow Employee

Hi all,

We have configured a Push Notifications for a custom Android app. After triggering a specific event, the notification stuck in system log with "Pending" type.

Here are more details:

  1. The user can login to APP on mobile devices, and got registered in   sys_push_notif_app_install table.
  2. The event triggers a push notification and it is successfully written to System Log.
  3. In system log I can see the message itself, where the registered device token is also mentioned.
  4. Now the message remains "Pending" for specific period of time, after what turns to "failure"

We have a Push Application configured in ServiceNow, that contains Goolge API key and "REST API" value for both Push and Feedback.

I can also see 2 error messages in System Log:

app="Push app name" origin="push.feedback" Invalid Feedback REST Message: no thrown error

app="Push app name" origin="push.feedback" elapsed=8 exception encountered getting feedback: java.lang.RuntimeException: feedback job does not have a valid Feedback REST Message: com.glide.push.feedback.FeedbackClientRest.getFeedback(FeedbackClientRest.java:52)

Any ideas are appreciated.

Thanks,

Pavlo

1 ACCEPTED SOLUTION

P-Rudenko-SN
ServiceNow Employee
ServiceNow Employee

Hey guys, I was finally able to solve it. The key point here, is to make sure the Push Application setup is correct. This is something not clearly stated in official docs. So for Android app, these points are important: Push = Direct, Feedback = REST, Google API key = FCM Server Key (both leagacy and the new one are working fine). Despite Google recommendations to set up HTTP headers for the REST message, the notifications are running fine both with- and without it. Therefore, normally you can leave out-of-the-box REST "Google Cloud Messaging Sent" unchanged.    


View solution in original post

6 REPLIES 6

Hi I did this in Helsinki. Both legacy and a new FCM Server Key works fine for me.


Hi Pavlo,



Hope you can help me. We're trying to configure push notifications using FCM too using Ionic for mobile develpment. I configured everything as the tutorials metion, we have SSO with office365 and I have a bunch of questions. Are you up for consulting services? please let me know, its urgen perhaps a a 1-2hours call via zoom or something.



gsosamv@gmail.com