Skip to content

Android Push Notification: Exception in onLogin callback: TypeError: Cannot redefine property: loginAt #13620

@loymascarenhas

Description

@loymascarenhas

Description:

Push Notification: Log shows as sent but after few seconds FCM returns a MismatchedSenderId error.
I have already verified the FCM API key and FCM Sender ID.

Steps to reproduce:

  1. Configure Administration -> Push settings
    untitled

  2. Configure GCM API key and GCM project id

  3. Restart Rocket.Chat server

Expected behavior:

Receive push notification on Android

Actual behavior:

Shows:
�[34mI20190305-20:47:03.263(0) Push: configuring... �[34mI20190305-20:47:03.264(0) Push.Configure { sendTimeout: 60000, apn: undefined, gcm: { apiKey: '<api-key-from-FCM>', projectNumber: '************' }, production: false, sendInterval: 5000, sendBatchSize: 10 } �[34mI20190305-20:47:03.265(0) GCM configured �[34mI20190305-20:47:03.268(0) Push: Send worker started, using interval: 5000 �[34mI20190305-20:47:03.484(0) ➔ System ➔ startup �[34mI20190305-20:47:03.485(0) ➔ +-----------------------------------------------------------+ �[34mI20190305-20:47:03.485(0) ➔ | SERVER RUNNING | �[34mI20190305-20:47:03.486(0) ➔ +-----------------------------------------------------------+ �[34mI20190305-20:47:03.486(0) ➔ | | �[34mI20190305-20:47:03.486(0) ➔ | Rocket.Chat Version: 0.74.3 | �[34mI20190305-20:47:03.487(0) ➔ | NodeJS Version: 8.11.4 - x64 | �[34mI20190305-20:47:03.487(0) ➔ | Platform: linux | �[34mI20190305-20:47:03.487(0) ➔ | Process Port: 3000 | �[34mI20190305-20:47:03.487(0) ➔ | Site URL: https://**************** | �[34mI20190305-20:47:03.488(0) ➔ | ReplicaSet OpLog: Disabled | �[34mI20190305-20:47:03.488(0) ➔ | Commit Hash: 202a465f1c | �[34mI20190305-20:47:03.488(0) ➔ | Commit Branch: HEAD | �[34mI20190305-20:47:03.489(0) ➔ | | �[34mI20190305-20:47:03.489(0) ➔ +-----------------------------------------------------------+

untitled1

Error

ANDROID: Result of sender: {"multicast_id":8190097161583612000,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}

Server Setup Information:

  • Version of Rocket.Chat Server: 0.74.3
  • Operating System: Ubuntu 16.04
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Disabled
  • NodeJS Version: 8.11.4 - x64
  • MongoDB Version: 3.4

Additional context

Relevant logs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions