Push notifications are not working in our ServiceNow instance integrated with Google FCM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 06:50 AM
Hi Community,
We have already integrated our ServiceNow instance with Google FCM (Firebase Cloud Messaging) to send push notifications. Initially, the integration was based on an API Key, but as per Google's recent policy changes, we moved to OAuth 2.0 for enhanced security.
Here’s what we’ve done so far:
- We registered the FCM app in Application Registry.
- Used Authorization Code as the grant type.
- Set up the OAuth flow and token retrieval.
- Push notifications are working successfully for my user account.
Issue:
When other Service Desk agents perform the same action (e.g., creating a Case Task that triggers push notifications), it fails with a 401 Unauthorized error.
Error observed in logs:
json
CopyEdit
{ "error": { "code": 401, "message": "Request had invalid authentication credentials.", "status": "UNAUTHENTICATED" } }
Request:
Could someone help me understand:
- Why it works for only one user?
- Do I need to generate tokens per user or use a common service account?
- Is there a better grant type for service-to-service communication in this scenario?
Any guidance or best practices would be greatly appreciated!
Thanks in advance,
Rajesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 08:44 AM
Hello ,
Yes you have to use the common service account i think you have putted your account.
Regards,
Alok Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2025 12:34 AM
Hi Alok,
Could you please clarify where I need to add the service account — in ServiceNow or Google FCM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2025 12:36 AM
Hi Alok,
Could you please clarify where I need to add the service account in ServiceNow or Google FCM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2025 12:37 AM
Hi Alok,
Could you please clarify where I need to add the service account?