Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push notifications not working on official app with self hosted chatwoot #813

Closed
mayank-gc opened this issue Aug 26, 2024 · 2 comments
Closed

Comments

@mayank-gc
Copy link

We are using self-hosted chatwoot (v3.3.2) with an official android mobile app (v1.10.44)
We have set ENABLE_PUSH_RELAY_SERVER to true

After debugging we encountered these errors

1st error -
{\n "error": {\n "code": 400,\n "message": "Invalid JSON payload received. Unknown name "sound" at 'message.notification': Cannot find field.\nInvalid JSON payload received. Unknown name "collapse_key" at 'message': Cannot find field.",\n "status": "INVALID_ARGUMENT",\n "details": [\n {\n "@type": "type.googleapis.com/google.rpc.BadRequest",\n "fieldViolations": [\n {\n "field": "message.notification",\n "description": "Invalid JSON payload received. Unknown name "sound" at 'message.notification': Cannot find field."\n },\n {\n "field": "message",\n "description": "Invalid JSON payload received. Unknown name "collapse_key" at 'message': Cannot find field."\n }\n ]\n }\n ]\n }\n}\n

After removing sound, collapse_key parameters from https://hub.2.chatwoot.com/send_push API.

We got another error -
{\n "error": {\n "code": 400,\n "message": "Recipient of the message is not set.",\n "status": "INVALID_ARGUMENT",\n "details": [\n {\n "@type": "type.googleapis.com/google.rpc.BadRequest",\n "fieldViolations": [\n {\n "field": "message",\n "description": "Recipient of the message is not set."\n }\n ]\n },\n {\n "@type": "type.googleapis.com/google.firebase.fcm.v1.FcmError",\n "errorCode": "INVALID_ARGUMENT"\n }\n ]\n }\n}\n

Copy link

linear bot commented Aug 26, 2024

@mayank-gc mayank-gc changed the title Push notifications not working Push notifications not working on official app with self hosted chatwoot Aug 26, 2024
@mayank-gc
Copy link
Author

It worked with latest code pull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@mayank-gc and others