Files
react-native-firebase/CHANGELOG.md
2019-02-08 02:26:48 +00:00

1.8 KiB

v6.0.0

WIP

All Modules

  • Improved error codes & handling for all Firebase services;
    • Standardised native error to JS conversion
    • Native promise rejection errors now contain additional properties to aid debugging
  • All native events are now queued natively until a JS listener is registered. This fixes several race conditions for events like onMessage, onNotification, onLink etc where the event would trigger before JS was ready.

App

  • Added appConfig & method support for setAutomaticDataCollectionEnabled & automaticResourceManagement
  • Added app options support for gaTrackingId
  • The [DEFAULT] Firebase app can now be safely initialised in JS, however this has some caveats;
    • Firebase services such as Performance Monitoring & Remote Config require the default app to be initialised through the plist/json file.
  • Waiting for apps to init via .onReady() has been removed. initializeApp() now returns a promise to the same effect
  • Trying to initialise the [DEFAULT] Firebase app in JS when it was already initialised natively will now throw an error (formerly warned)

Analytics

  • Added support for resetAnalyticsData() - this is useful for opt-in first analytics/data collection flows
  • setUserProperties now iterates properties natively (formerly 1 native call per property)

Functions

  • Fixed an issue where useFunctionsEmulator does not persist natively (Firebase Native SDKs require chaining this method before other calls and does not modify the instance)

Instance Id (iid)

  • Instance Id now supports multiple Firebase apps, e.g. firebase.app('fooApp').iid().get()
  • Support preventing auto initialization via setAutoInitEnabled(enabled: boolean) - this is useful for opt-in first analytics/data collection flows