Skip to content

Conversation

@siemensikkema
Copy link
Contributor

Implements #29

Instead of always using the applications' eventloopgroup's next loop
use the client's eventloop instead. This should lessen the need to hop
eventloops.
The `validate_only` parameter did not seem necessary and since it was
causing a warning I opted to remove it.
Copy link
Owner

@MihaelIsaev MihaelIsaev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@siemensikkema overall new batch send works well? I just can't test it at the moment.

@siemensikkema
Copy link
Contributor Author

We'll test it more on a project tomorrow. So far it seemed to work well for single notifications sent using the batch method.

@siemensikkema
Copy link
Contributor Author

Are we sure the limit is 500?

Pretty sure. The documentation mentions a maximum of 500 and this python library also has a limit of 500.

@pbodsk
Copy link

pbodsk commented Dec 9, 2020

But earlier in the same document they mention

You can specify up to 100 device registration tokens (500 for Java and Node.js) per invocation.

But that must be legacy since they also support 500 messages in Python but only mentions Java and Node.js.

@MihaelIsaev
Copy link
Owner

We'll test it more on a project tomorrow. So far it seemed to work well for single notifications sent using the batch method.

@siemensikkema could you please confirm that you tested it for multiple notifications sent using the batch method and I'll merge and release it. Thank you 🙏

@MihaelIsaev
Copy link
Owner

@siemensikkema have you had a chance to test it on sending a message to more than one recipient? 🙂

@siemensikkema
Copy link
Contributor Author

@MihaelIsaev Hi! Thanks for following up! Yes, we've been using this in production for over a week now and there are no complaints from the client anymore ☺️

@MihaelIsaev MihaelIsaev merged commit f8cff7e into MihaelIsaev:master Dec 17, 2020
@MihaelIsaev
Copy link
Owner

It is now available since 2.9.0 tag!
@siemensikkema many thanks for the contribution! 🥳🚀

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

Successfully merging this pull request may close these issues.

3 participants