-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Multiple Push notificatons gateways #34034
Comments
Fixed sendNotification function to ensure proper asynchronous execution by removing unnecessary return. Improved error handling and logging to ensure reliable push notifications without affecting the flow of the application
Fixed with slight logic improvement |
I have referred this to the team but not sure what their view will be on this. Please be patient. |
Can you please open a Pull Request with the fix you are proposing? |
Make a proper PR as requested please |
This is not an issue since it is impossible to have once device that has an |
Hi |
Can you post a screenshot please? |
Administration -> Settings -> Push -> Gateway
If I set multiple push notification gatways rocketchat server send only to first one
(Multiple lines can be used to specify multiple gateways)
Beсause:
https://github.com/RocketChat/Rocket.Chat/blob/develop/apps/meteor/app/push/server/push.ts#L270
in
private async sendNotificationGateway(
in such "for" logics will work only one time and will exit from a "for" loop after first "return this.sendGatewayPush..." and will not try next gateway from a "this.options.gateways" list.
`for (const gateway of this.options.gateways) {
logger.debug('send to token', app.token);
The text was updated successfully, but these errors were encountered: