Skip to content

Releases: kreait/firebase-php

6.7.0

28 Jul 17:30
b091648
Compare
Choose a tag to compare

Added

Changed

  • The default HTTP Client options have been updated (#723)
    • Connect Timeout from ∞ to 15 seconds
    • Timeout from ∞ to 30 seconds

6.6.1

12 Jul 10:57
f9a9795
Compare
Choose a tag to compare

Fixed

  • The WebPushConfig class is now more lenient with TTL values, and urgencies are checked if they are valid (#716)
  • The AndroidConfig didn't allow the TTL to be null) (#719)

6.6.0

07 Jul 20:52
5725563
Compare
Choose a tag to compare

Fixed

  • The AndroidConfig class is now more lenient with TTL values (#713

Added

  • The maximum amount of messages that can be sent in batches can be accessed with Kreait\Firebase\Contract\Messaging::BATCH_MESSAGE_LIMIT

6.5.1

27 Jun 18:00
960f897
Compare
Choose a tag to compare

Keys in the data payload of an FCM message were always lower-cased, although they shouldn't have been. (#709)

6.5.0

21 Jun 22:56
2ed045c
Compare
Choose a tag to compare

Added

  • Problems while fetching Dynamic Link statistics now result in more helpful exception messages. (#707)

Changed

6.4.1

14 Jun 23:19
c14ed1b
Compare
Choose a tag to compare

Fixed

  • Updating a Realtime Database Ruleset converted lists to objects with numeric keys. (#707)

5.26.3

14 Jun 23:10
8eb92e2
Compare
Choose a tag to compare

Fixed

  • Updating a Realtime Database Ruleset converted lists to objects with numeric keys. (backported from #707)

6.4.0

08 Jun 15:55
8aa5b12
Compare
Choose a tag to compare

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 to background or alert
    • The content-available field is set to 1 in case of a background message
  • 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

06 May 23:29
dba320d
Compare
Choose a tag to compare

Fixed

  • Nested lists in custom user claims were not correctly encoded. (#699)

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

5.26.2

06 May 23:24
da0e60f
Compare
Choose a tag to compare

Fixed

  • Nested lists in custom user claims were not correctly encoded. (#699)

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏