-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement chunk Fixes #91 Implement chunking functionality for push notifications. * Add `chunk_push_notifications` method to `Expo` struct in `src/expo_client.rs` to split messages into chunks of 100. * Update `send_push_notifications` method in `src/expo_client.rs` to use `chunk_push_notifications` method. * Add test cases for `chunk_push_notifications` method in `tests/expo_client.rs`. * Replace `unwrap` with `anyhow` for error handling in `src/error.rs` and `src/object/expo_push_message.rs`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/katayama8000/expo-push-notification-client-rust/issues/91?shareId=XXXX-XXXX-XXXX-XXXX). * Refactor error handling and improve chunk_push_notifications method * Remove unwrap() * Refactor chunk_push_notifications to return SendPushNotificationsRequest * make chunk_push_notifications private * Add unit test for chunk_push_notifications method * Optimize chunking of messages in chunk_push_notifications method * Add comment to indicate private methods in Expo implementation * Bump version to 0.6.0 in Cargo.toml
- Loading branch information
1 parent
3461923
commit 5cf1ec8
Showing
4 changed files
with
65 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters