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

feat(fcm): Add sendEach and sendEachForMulticast for FCM batch send #2138

Merged
merged 5 commits into from Apr 12, 2023

Commits on Mar 3, 2023

  1. Deprecate sendAll and sendMulticast (#2094)

    1. Deprecate sendAll and sendMulticast
    2. Add dummy implementation for sendEach and sendEachForMulticast to avoid errors reported by api-extractor
    Doris-Ge committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    2725f8c View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2023

  1. Implement sendEach and sendEachForMulticast (#2097)

    `sendEach` vs `sendAll`
    1. `sendEach` sends one HTTP request to V1 Send endpoint for each
        message in the array.
       `sendAll` sends only one HTTP request to V1 Batch Send endpoint
        to send all messages in the array.
    2. `sendEach` calls `Promise.allSettled` to wait for all
       `httpClient.send` calls to complete and construct a `BatchResponse`.
        An `httpClient.send` call to V1 Send endpoint either completes
        with a success or throws an error. So if an error is thrown out,
        the error will be caught in `sendEach` and turned into a
        `SendResponse` with an error.
        Therefore, unlike `sendAll`, `sendEach` does not always throw
        an error for a total failure. It can also return a `BatchResponse`
        with only errors in it.
    
    `sendEachForMulticast` calls `sendEach` under the hood.
    Doris-Ge committed Mar 30, 2023
    Configuration menu
    Copy the full SHA
    a0a02f2 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2023

  1. Configuration menu
    Copy the full SHA
    6fa3c00 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2023

  1. Configuration menu
    Copy the full SHA
    11eb987 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2023

  1. Configuration menu
    Copy the full SHA
    2cb6557 View commit details
    Browse the repository at this point in the history