Solved GCM response: Unauthorized

Status
Not open for further replies.

complex1

Customer
Advanced Certified
Joined
Jan 25, 2010
Messages
1,141
Reaction score
128
Hi,

PBX: 3CX running Debian v15 SP5 - 8SC license
Client: 3CX app v15.0.23
Phone Model: Huawei - v6.0
Connection: 4G WiFi

I have installed the 3CX Client on an Huawei smartphone, but if the app/phone is going to sleep the PUSH function is not working. It does not wake up the device.
Also setup the Google PUSH Cloud Messaging for 3CX Client for Android as describe here:
https://www.3cx.com/docs/

If I examine the 3CXDialer.log I found this message:
GCM response: Unauthorized Invalid (legacy) Server-key delivered or Sender is not authorized to perform request.

What does it mean and more important how to solve to get the PUSH working.

Thanks for any assistance.
 
Related to this?:confused:
Starting from September 2016, you can create new server keys only in the Firebase Console using the Cloud Messaging tab of the Settings panel. Existing projects that need to create a new server key can be imported in the Firebase console without affecting their existing configuration.
 
Maybe Yes, maybe No
I don't know, that's why my question.

So, if you know how to fix it, please be my guest and be my guide.

Thank you.
 
Hello,

@complex1 :

1. Check your API key and project number
2. Check if your public IP changed


@Sopock:
Updates are coming soon


Thank You
 
Hi,

Here is some feedback.
Many, many times I have checked, dubble checked the used Public IP, API Key and Project number if that was not causing the problem. Also removed several times the complete API Project, till I decide not to add the Public IP and leave the Key Restriction to None.
Suddenly the PUSH message wakeup the phones and in the log I read a “GCM response: OK OK” message.

Issue solved.

Thanks for the help.
 
I am having the same exact problem as described above and the only way I could get it to work is to NOT include my Public IP. However, that leaves the API key unrestricted and would not prevent unauthorized use.

What can I do to have it work with my Public IP?
 
Status
Not open for further replies.

Members Online Now

No members online now.

Forum statistics

Threads
111,831
Messages
589,277
Members
164,660
Latest member
RJenkinsROCK