Skip to content

v3.0.0

Compare
Choose a tag to compare
@akalex akalex released this 11 Apr 14:47
· 24 commits to master since this release
1255daa

Remastering client interface

  • [BREAKING] The methods push and push_multicast renamed to send and send_multicast accordingly.
  • [BREAKING] The signatures of the methods send and send_multicast have been changed.
    • Method send accepts instance of messages.Message and returns messages.FCMResponse
    • Method send_multicast accepts instance of messages.MulticastMessage and returns messages.FCMBatchResponse
  • New method send_all to send messages in a single batch has been added. It takes a list of messages.Message instances and returns messages.FCMBatchResponse.
  • README.md has been updated to highlight differences in interfaces for versions before 3.x and after
  • Improved naming:
    • messages.FcmPushMulticastResponse to messages.FCMBatchResponse
    • messages.FcmPushResponse to messages.FCMResponse
    • utils.FcmReponseType to utils.FCMResponseType
    • utils.FcmResponseHandler to utils.FCMResponseHandlerBase
    • utils.FcmPushResponseHandler to utils.FCMResponseHandler
    • utils.FcmPushMulticastResponseHandler to utils.FCMBatchResponseHandler
  • Type annotations and doc string were updated according to the new naming.