Releases: kreait/firebase-php
Releases · kreait/firebase-php
6.5.1
6.5.0
Added
- Problems while fetching Dynamic Link statistics now result in more helpful exception messages. (#707)
Changed
- Raised minimum version of Guzzle to address CVE-2022-31090 and CVE-2022-31091
6.4.1
5.26.3
6.4.0
Added
- If not already set, APNs configs are enriched with the necessary headers and fields to ensure the delivery of iOS background messages and alerts.
- The
apns-push-type
header is set tobackground
oralert
- The
content-available
field is set to1
in case of a background message
- The
- FCM Messages are now annotated for better PHPStan/Psalm resolution
- Added methods
\Kreait\Firebase\Messaging\AndroidConfig::withMinimalNotificationPriority()
\Kreait\Firebase\Messaging\AndroidConfig::withLowNotificationPriority()
\Kreait\Firebase\Messaging\AndroidConfig::withDefaultNotificationPriority()
\Kreait\Firebase\Messaging\AndroidConfig::withHighNotificationPriority()
\Kreait\Firebase\Messaging\AndroidConfig::withMaximalNotificationPriority()
\Kreait\Firebase\Messaging\AndroidConfig::withNotificationPriority()
\Kreait\Firebase\Messaging\AndroidConfig::withUnspecifiedNotificationPriority()
\Kreait\Firebase\Messaging\AndroidConfig::withPrivateNotificationVisibility()
\Kreait\Firebase\Messaging\AndroidConfig::withPublicNotificationVisibility()
\Kreait\Firebase\Messaging\AndroidConfig::withSecretNotificationVisibility()
\Kreait\Firebase\Messaging\AndroidConfig::withNotificationVisibility()
\Kreait\Firebase\Messaging\ApnsConfig::data()
\Kreait\Firebase\Messaging\ApnsConfig::hasHeader()
\Kreait\Firebase\Messaging\ApnsConfig::isAlert()
\Kreait\Firebase\Messaging\ApnsConfig::toArray()
\Kreait\Firebase\Messaging\ApnsConfig::withApsField()
\Kreait\Firebase\Messaging\ApnsConfig::withDataField()
\Kreait\Firebase\Messaging\ApnsConfig::withHeader()
Changed
- FCM notifications (
Kreait\Firebase\Messaging\Notification
) can now be created with null values. If a notification has only null values, the notification payload will be removed on serialization as if it wasn't provided at all. - Deprecations
\Kreait\Firebase\Messaging\AndroidConfig::withHighPriority()
, use\Kreait\Firebase\Messaging\AndroidConfig::withHighMessagePriority()
instead\Kreait\Firebase\Messaging\AndroidConfig::withNormalPriority()
, use\Kreait\Firebase\Messaging\AndroidConfig::withNormalMessagePriority()
instead\Kreait\Firebase\Messaging\AndroidConfig::withPriority()
, use\Kreait\Firebase\Messaging\AndroidConfig::withMessagePriority()
instead
6.3.1
5.26.2
6.3.0
Added
- Added support for the Firebase Auth Emulator. (#692) (Documentation)
- Tenant aware session cookie handling is now officially supported.
If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏
6.2.0
Added
- Cloud Messaging: Added support for APNS subtitles (supported by iOS 9+, silently ignored for others) (#692)
- Auth: In
Auth::listUsers()
, if the specified batch size exceeds the specified maximum number of to be returned users, the batch size will be reduced from the default 1000. As an example: previously,Auth::listUsers(2)
would have downloaded 1000 accounts (the default batch size), but return only the first two. After the change, only two accounts will be downloaded. - Added methods
Kreait\Firebase\Messaging\ApnsConfig::withSubtitle()
Changed
- Replaced internal JSON helper class with
beste/json
- Deprecated classes
Kreait\Firebase\Util\JSON
6.1.0
Added
- Added convenience method to bulk-remove multiple children of an RTDB Reference (#686)
- Added support for Session Cookie Verification.
- Tenants don't seem to be supported at the moment (creating or verifying a Session Cookie with a tenant-enabled Firebase project yields an
UNSUPPORTED_TENANT_OPERATION
error), but once it is supported, the SDK will need no or just minimal updates. Integration tests are in place to checking for this error so that we know early on when it starts working.
- Tenants don't seem to be supported at the moment (creating or verifying a Session Cookie with a tenant-enabled Firebase project yields an
- Added methods:
Kreait\Firebase\Auth::verifySessionCookie()
Kreait\Firebase\Database\Reference::removeChildren()
Changed
- Tenant-aware auth methods are now tested the same way as tenant-unaware methods. In order to achieve this, some internal implementations had to be changed, warranting this minor version bump. Please note that the tests uncovered that creating session tokens is currently not possible when working with tenants. (GitHub issue / Google Issue Tracker issue))
- Deprecated classes
Kreait\Firebase\Auth\CreateActionLink\ApiRequest
Kreait\Firebase\Auth\CreateSessionCookie\ApiRequest
Kreait\Firebase\Auth\SendActionLink\ApiRequest
If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏