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

bugfix: adds tests and fix bug sending more than 100 not batched notifications #25

Conversation

joemugen
Copy link
Contributor

If you were sending more than 100 notifications (not batchable), it would failed because of the Expo Push limitation. This fix will chunk by 100 the notifications. For example, if there is 120 notifications, 2 chunks will be created and 2 requests will be sent to Expo API.

There was no test suite set up, so I had to set this first then I just wrote the test to cover the bugfix. This package is missing tests, feel free to add more :)

…po API

If you were sending more than 100 notifications (not batchable), it would failed because of the Expo Push limitation.
This fix will chunk by 100 the notifications. For example, if there is 120 notifications, 2 chunks will be created and 2 requests will be sent to Expo API.

There was no test suite set up, so I had to set this first then I just wrote the test to cover the bugfix.
This package is missing tests, feel free to add more :)
`fake()` function does not exists on Laravel 9
@joemugen joemugen marked this pull request as ready for review February 15, 2024 14:58
@joemugen joemugen requested a review from JamesHemery February 15, 2024 14:58
@joemugen joemugen added bug Something isn't working enhancement New feature or request labels Feb 15, 2024
@joemugen joemugen force-pushed the bugfix/avoid-sending-more-than-push-notif-limit-no-batched-notifications branch from 3457c03 to 1e967f2 Compare February 15, 2024 16:24
@joemugen joemugen requested a review from JamesHemery February 15, 2024 19:37
@joemugen joemugen force-pushed the bugfix/avoid-sending-more-than-push-notif-limit-no-batched-notifications branch from fbe16ec to bf9760b Compare February 16, 2024 11:30
@joemugen joemugen merged commit b642b60 into main Feb 16, 2024
10 checks passed
@joemugen joemugen deleted the bugfix/avoid-sending-more-than-push-notif-limit-no-batched-notifications branch February 16, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants