Async-firebase

Latest version: v3.10.0

Safety actively analyzes 715081 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 9

2.1.0

Not secure
* ``messages.Notification`` object now supports attribute ``image`` that allows to set image url of the notification

2.0.3

Not secure
A few new error types have been added to support the errors that FCM API may return:
- InvalidArgumentError
- FailedPreconditionError
- OutOfRangeError
- UnauthenticatedError
- PermissionDeniedError
- NotFoundError
- AbortedError
- AlreadyExistsError
- ConflictError
- ResourceExhaustedError
- CancelledError
- DataLossError
- UnknownError
- InternalError
- UnavailableError
- DeadlineExceededError

2.0.2

Not secure
* Adjust type annotations for some errors:

**async_firebase/errors.py**
python

class AsyncFirebaseError(BaseAsyncFirebaseError):
"""A prototype for all AF Errors.

This error and its subtypes and the reason to rise them are consistent with Google's errors,
that may be found in `firebase-admin-python` in `firebase_admin.exceptions module`.
"""

def __init__(
self,
code: str,
message: str,
<<< cause: t.Optional[Exception] = None,
>>> cause: t.Union[httpx.HTTPStatusError, httpx.RequestError, None] = None,
http_response: t.Optional[httpx.Response] = None,
):


**async_firebase/messages.py**
python
class FcmPushResponse:
"""The response received from an individual batched request to the FCM API.

The interface of this object is compatible with SendResponse object of
the Google's firebase-admin-python package.
"""

def __init__(
self,
fcm_response: t.Optional[t.Dict[str, str]] = None,
<<< exception: t.Optional[Exception] = None
>>> exception: t.Optional[AsyncFirebaseError] = None
):

2.0.1

Not secure
* Fix ``TypeError`` on create ``AsyncFirebaseError`` subclass instance

2.0.0

Not secure
* `push` method now returns a `FcmPushResponse` object, that has a fully compatible interface with SendResponse object of the Google's firebase-admin-python package.
* `push_multicast` method now returns a `FcmPushMulticastResponse` object, that has a fully compatible interface with BatchResponse object of the Google's firebase-admin-python package.
* The aforementioned methods may still rise exceptions when assembling the message for the request.
* A bunch of exceptions has been added.

1.9.1

Not secure
* [FIX] Invalid batch requests fixed in``push_multicast`` method.
* [FIX] Data mutation issues that lead to unexpected behaviour fixed in ``assemble_push_notification`` method.
* Message ``messages.MulticastMessage`` was deprecated as it's no longer used.

Page 5 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.