Skip to content

4.28.0

Choose a tag to compare

@jeromegamez jeromegamez released this 29 Jul 19:52
4.28.0
da08505

Added

General

  • The SDK is now able to handle connection issues more gracefully. The following exceptions will now be thrown when a connection could not be established:
    • Kreait\Firebase\Auth\ApiConnectionFailed
    • Kreait\Firebase\Database\ApiConnectionFailed
    • Kreait\Firebase\Messaging\ApiConnectionFailed
    • Kreait\Firebase\RemoteConfig\ApiConnectionFailed

Cloud Messaging

  • It is now possible to retrieve extended information about application instances related to a registration token, including the topics an application instance/registration token is subscribed to.
    (Documentation)

Changed

General

  • Each component now has its own catchable exception interface, e.g. Kreait\Firebase\Exception\AuthException or Kreait\Firebase\Exception\DatabaseException.
  • The following exceptions are now interfaces implemented by specific errors instead of extensible classes:
    • Kreait\Firebase\Exception\AuthException
    • Kreait\Firebase\Exception\DatabaseException (new)
    • Kreait\Firebase\Exception\MessagingException
    • Kreait\Firebase\Exception\RemoteConfigException
  • Kreait\Firebase\Auth\CustomTokenViaGoogleIam is no longer using deprecated methods to build a custom token.
  • Getting requests and responses from exceptions is now considered deprecated. If you want to debug HTTP requests, use the Firebase factory to debug the HTTP client via configuration or an additional middleware.