Page 1 of 1
Google Cloud Messaging not working
Posted: Friday 19 December 2025 23:44
by andrhrstv
Hello forum,
I've been using the Google Cloud Messaging for years now and yesterday it just stopped working. I get this error in the log when i try to send a notification to my Android phones:
2025-12-20 00:20:13.712 Error: FCM: Unable to get access token!
2025-12-20 00:20:13.712 Notification sent (fcm) => Failed
2025-12-20 00:20:13.718 Active notification Subsystems: fcm (1/13)
Any ideas what might had happen or how to fix that? The Domoticz GCM notification system is not documented at all.
About my Domoticz
Version: 2025.1
Build Hash: 89d5c900d
Compile Date: 2025-05-05 10:02:49
dzVents Version: 3.1.8
Python Version: 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0]
Uptime: 1 Days, 2 Hours, 24 Minutes, 15 Seconds
Re: Google Cloud Messaging not working
Posted: Sunday 21 December 2025 12:26
by dobber
Same problem here.
Domoticz 25.2 16997
Must be a general error with domoticz. Expired key etc with google cloud.
Re: Google Cloud Messaging not working
Posted: Wednesday 24 December 2025 12:30
by vipkoza
Same issue here
Code: Select all
2025-12-24 12:27:06.719 Status: Notification: Domoticz test
2025-12-24 12:27:07.472 Error: FCM: Unable to get access token!
2025-12-24 12:27:07.472 Notification sent (fcm) => Failed
Version: 2025.2
Build Hash: e63981b18
Compile Date: 2025-10-13 11:42:57
FCM Notification errors
Posted: Wednesday 24 December 2025 12:40
by elgringo
Since last week I dont get any FCM messages anymore.
Logging reports:
FCM: Unable to get access token!
I removed all mobile devices and readded them. Same problem
Running on a Pi 5, bookworm, 2025.2 in a docker container
Re: FCM errors
Posted: Friday 26 December 2025 22:57
by bboy19
The same for me. I'm not able to recieve push notification on mobile app. Anyone can help?
Re: FCM errors
Posted: Friday 26 December 2025 23:32
by waltervl
Seems to be some general issue here since 18 or 19 december
viewtopic.php?p=330271#p330271
Re: Google Cloud Messaging not working
Posted: Saturday 27 December 2025 13:05
by electrofunk
Hi,
Same problem here with Domoticz 2024.6 and 2024.7.
Hopefully, the fix of this problem does not impose to install a newer version of Domoticz because 2024.6/7 are the last versions working on bullseye/OpenSSLv1. Problem with newer versions of Domoticz is that they impose bookworm/OpenSSLv3 and new GPIO management, so a lot of upgrade work
Thanks for your help.
Re: Google Cloud Messaging not working
Posted: Saturday 27 December 2025 13:17
by waltervl
Could also be an issue on the Android App side as that should receive the notification...
Re: Google Cloud Messaging not working
Posted: Saturday 27 December 2025 13:54
by electrofunk
Just to give more detail in my case:
Debug Log in Domoticz:
Debug: FCM: Requesting AccessToken (grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=
<base64 encoded assertion>)
Debug: FCM: Failed to retrieve AccessToken, JSON Error! ({"error":"invalid_grant","error_description":"Invalid JWT Signature."})
Error: FCM: Unable to get access token! Notification sent (fcm) => Failed
The Domoticz mobile App I'm using is this one:
https://play.google.com/store/apps/deta ... s.domoticz
Re: Google Cloud Messaging not working
Posted: Tuesday 30 December 2025 9:48
by waltervl
I merged the FCM message error topic into this topic as it is the same issue.
There is also a Github issue created as it seems Google revoked to API key to send messages. So this will be a major overhaul to get this up and running again.
https://github.com/domoticz/domoticz/issues/6492
Re: Google Cloud Messaging not working
Posted: Saturday 03 January 2026 21:43
by PeJeWe
Same here
Version: 2025.2
Build Hash: e63981b
Code: Select all
Error: FCM: Unable to get access token!
Re: Google Cloud Messaging not working
Posted: Saturday 03 January 2026 23:47
by waltervl
Yes, and it will not be easy to fix it.....
Re: Google Cloud Messaging not working
Posted: Sunday 04 January 2026 15:54
by PeJeWe
Is there any simple alternative without installing an app?
Re: Google Cloud Messaging not working
Posted: Wednesday 21 January 2026 21:51
by waltervl
The issue has been solved in Domoticz latest beta and the updated app thanks to galadril and gizmocuz.
To receive notifications from Domoticz server with the Android Domoticz app you need to setup a project. For this got to wiki page Firebase setup
https://wiki.domoticz.com/Firebase_setup
Re: Google Cloud Messaging not working
Posted: Thursday 22 January 2026 9:19
by pfloryann
This fix is very good and works, but maybe it should be temporary because not all users have the technical skills to implement from firebase console to domoticz and then to the app. That's why I think a simpler option should be found in the future, like it was before but which works now.
Re: Google Cloud Messaging not working
Posted: Thursday 22 January 2026 9:25
by waltervl
Unfortunatly this is the only way to do this. We cannot store a Firebase API key in the Domoticz public repository as Google will disable that key (as it did before). The way it is implemented now is the only way for an open source server application sending notifications to an Android App.