Title: FirebaseMessaging.sendEach has a limit of 500 messages · Issue #1103 · firebase/firebase-admin-java · GitHub
Open Graph Title: FirebaseMessaging.sendEach has a limit of 500 messages · Issue #1103 · firebase/firebase-admin-java
X Title: FirebaseMessaging.sendEach has a limit of 500 messages · Issue #1103 · firebase/firebase-admin-java
Description: [READ] Step 1: Are you in the right place? For issues or feature requests related to the code in this repository file a Github issue. If this is a feature request make sure the issue title starts with "FR:". For general technical questio...
Open Graph Description: [READ] Step 1: Are you in the right place? For issues or feature requests related to the code in this repository file a Github issue. If this is a feature request make sure the issue title starts w...
X Description: [READ] Step 1: Are you in the right place? For issues or feature requests related to the code in this repository file a Github issue. If this is a feature request make sure the issue title starts w...
Opengraph URL: https://github.com/firebase/firebase-admin-java/issues/1103
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FirebaseMessaging.sendEach has a limit of 500 messages","articleBody":"### [READ] Step 1: Are you in the right place?\n\n * For issues or feature requests related to __the code in this repository__\n file a Github issue.\n * If this is a __feature request__ make sure the issue title starts with \"FR:\".\n * For general technical questions, post a question on [StackOverflow](http://stackoverflow.com/)\n with the firebase tag.\n * For general Firebase discussion, use the [firebase-talk](https://groups.google.com/forum/#!forum/firebase-talk)\n google group.\n * For help troubleshooting your application that does not fall under one\n of the above categories, reach out to the personalized\n [Firebase support channel](https://firebase.google.com/support/).\n\nRead and understood.\n\n### [REQUIRED] Step 2: Describe your environment\n\n * Operating System version: N/A\n * Firebase SDK version: 9.4.2\n * Library version: _____\n * Firebase Product: messaging (auth, database, storage, etc)\n\n### [REQUIRED] Step 3: Describe the problem\n\nsendEach has a limit of 500 messages, this limit is probably a leftover from sendAll which no longer works. It's not really logical to have this limit anymore.\n\nhttps://github.com/firebase/firebase-admin-java/blob/master/src/main/java/com/google/firebase/messaging/FirebaseMessaging.java#L226\n\n#### Steps to reproduce:\n\nCreate a list with over 500 messages / push notifications. Call FirebaseMessaging.sendEach with the list. An error is thrown that there is over 500 messages in the array.\nWhat happened? How can we make the problem occur?\nThis could be a description, log/console output, etc.\n\n#### Relevant Code:\n\n```\n checkArgument(immutableMessages.size() \u003c= 500,\n \"messages list must not contain more than 500 elements\");\n```\nhttps://github.com/firebase/firebase-admin-java/blob/master/src/main/java/com/google/firebase/messaging/FirebaseMessaging.java#L226\n","author":{"url":"https://github.com/andreandersson","@type":"Person","name":"andreandersson"},"datePublished":"2025-06-09T12:18:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1103/firebase-admin-java/issues/1103"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c4f72fe0-c0c1-5efc-5855-08e33a149882 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E40C:E81C8:8AA4A:BB9B8:698E462E |
| html-safe-nonce | 29d70d00686dee1162f54d48b81de77575efc69028b87317bd5c9873c55fb4a7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDBDOkU4MUM4OjhBQTRBOkJCOUI4OjY5OEU0NjJFIiwidmlzaXRvcl9pZCI6IjYxMjY5NTYxMzg2OTkwNDg0OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7be78700c1ffb85fb2d0cf29c9523ba71850328d0689d38c07a448b4152adefe |
| hovercard-subject-tag | issue:3130143070 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/firebase/firebase-admin-java/1103/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b3dd982c59aff0aed24a3131f142330c2f7d3136d760a6cc16c47d6e959cd946/firebase/firebase-admin-java/issues/1103 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b3dd982c59aff0aed24a3131f142330c2f7d3136d760a6cc16c47d6e959cd946/firebase/firebase-admin-java/issues/1103 |
| og:image:alt | [READ] Step 1: Are you in the right place? For issues or feature requests related to the code in this repository file a Github issue. If this is a feature request make sure the issue title starts w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andreandersson |
| hostname | github.com |
| expected-hostname | github.com |
| None | a5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082 |
| turbo-cache-control | no-preview |
| go-import | github.com/firebase/firebase-admin-java git https://github.com/firebase/firebase-admin-java.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 84979119 |
| octolytics-dimension-repository_nwo | firebase/firebase-admin-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84979119 |
| octolytics-dimension-repository_network_root_nwo | firebase/firebase-admin-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3dda52e29a416820ced574e74040033b820613a2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width