Solved GCM response: Unauthorized

Discussion in 'Android' started by complex1, Mar 11, 2017.

Thread Status:
Not open for further replies.
  1. complex1

    complex1 Active Member

    Joined:
    Jan 25, 2010
    Messages:
    752
    Likes Received:
    38
    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/configuring-google-push/

    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Sopock

    Sopock Member

    Joined:
    Jul 11, 2012
    Messages:
    448
    Likes Received:
    20
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. complex1

    complex1 Active Member

    Joined:
    Jan 25, 2010
    Messages:
    752
    Likes Received:
    38
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Marios Neophytou

    Marios Neophytou Support Team
    Staff Member 3CX Support

    Joined:
    Mar 1, 2016
    Messages:
    241
    Likes Received:
    12
    Hello,

    @complex1 :

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


    @Sopock:
    Updates are coming soon


    Thank You
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. complex1

    complex1 Active Member

    Joined:
    Jan 25, 2010
    Messages:
    752
    Likes Received:
    38
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. 9009

    Joined:
    Jun 19, 2016
    Messages:
    32
    Likes Received:
    0
    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?
     
Thread Status:
Not open for further replies.