v4.3.0
v4.3.0 Changelog
As always - huge thanks to all our contributors and everyone that has helped debug issues.
Upgrade Guide
This release does NOT support React Native v0.56.x - this will come in the v5.0.0 release due to backwards incompatible breaking changes.
See minor storage change below and update your code if it affects you.
Our testing project can also be inspected as a reference / guide to versions etc. It's located here.
Android - Upgrade Guide
Update your in-use Firebase SDK dependencies to match the following versions:
// android/app/build.gradle
// RNFirebase required dependencies
implementation "com.google.firebase:firebase-core:16.0.1"
implementation "com.google.android.gms:play-services-base:15.0.1"
// RNFirebase optional dependencies
implementation "com.google.firebase:firebase-ads:15.0.1"
implementation "com.google.firebase:firebase-auth:16.0.2"
implementation "com.google.firebase:firebase-config:16.0.0"
implementation "com.google.firebase:firebase-crash:16.0.1"
implementation "com.google.firebase:firebase-database:16.0.1"
implementation "com.google.firebase:firebase-firestore:17.0.2"
implementation "com.google.firebase:firebase-functions:16.0.1"
implementation "com.google.firebase:firebase-invites:16.0.1"
implementation "com.google.firebase:firebase-storage:16.0.1"
implementation "com.google.firebase:firebase-messaging:17.1.0"
implementation "com.google.firebase:firebase-perf:16.0.0"
implementation('com.crashlytics.sdk.android:crashlytics:2.9.3@aar') {
transitive = true
}
If you use Crashlytics, update your fabric gradle tools version:
// android/build.gradle
// ...
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:4.0.1'
classpath 'com.google.firebase:firebase-plugins:1.1.1'
// ... THIS --------------------------- \/
classpath 'io.fabric.tools:gradle:1.25.4'
// ... THIS --------------------------- /\
// ...
iOS - Upgrade Guide
We recommend locking your Firebase SDK pods to the versions in the Podfile example below:
Going forward we'll only be supporting specific versions per release, this is to prevent issues with compilation on xcode e.g. missing symbols.
# ...
pod 'Firebase/AdMob', '~> 5.3.0'
pod 'Firebase/Auth', '~> 5.3.0'
pod 'Firebase/Core', '~> 5.3.0'
pod 'Firebase/Crash', '~> 5.3.0'
pod 'Firebase/Database', '~> 5.3.0'
pod 'Firebase/Functions', '~> 5.3.0'
pod 'Firebase/DynamicLinks', '~> 5.3.0'
pod 'Firebase/Firestore', '~> 5.3.0'
pod 'Firebase/Invites', '~> 5.3.0'
pod 'Firebase/Messaging', '~> 5.3.0'
pod 'Firebase/RemoteConfig', '~> 5.3.0'
pod 'Firebase/Storage', '~> 5.3.0'
pod 'Firebase/Performance', '~> 5.3.0'
pod 'Fabric', '~> 1.7.5'
pod 'Crashlytics', '~> 3.10.4'
# ...
Admob
- [ios] disable on all 32bit devices to prevent crashes (as not supported) #1253
Analytics
- [ios] fixed deadlock #1195
Auth
- [android] add support for phone auth
ForceResendingToken
, closes #721 - [android] fix crash on
signInAndRetrieveDataWithCredential()
when using twitter auth #1249
Cloud Firestore
- [android][ios] add support for
GetOptions
#1248
Database
- [android] allow apps to use initializeApp() to configure firebase database #1193
IID
- add support for
getToken(string,string)
anddeleteToken(string,string)
- #1215
Notifications
- [android] fix
setDefaults
on Notifications. #1235 - [android] add support for
areNotificationsEnabled
#1164 - [android] fix for
Notification
setProgress
not working #1167 - [android][js] resolve display notification promise #1113
- [android] add support for drawable resources to
AndroidNotification
#1221 - [android][js] closes #1216 : AndroidNotification.setVisibility does not exists #1219
- [js][android] closes #1213 : Incorrect definition of
Android.Importance.None
#1220
Storage
- [ios] fixed deadlock #1195
- [ios] app crashes when storage().putFile is called with assets-library uri on iOS #1232
- [ios][android] firebase Storage image upload ignores contentType metadata #739
- [js] putFile error #1177 - added automatic
decodeURI
'ing on file path - MINOR [js][android] inconsistent paths with/out trailing slashes in firebase.storage.Native #1200
- small breaking change: any paths here that had a trailing slash before will now no longer have one. Adjust your file paths that used these statics to compensate
Typings
- [flow][db] Modifies db Reference push() to return ThenableReference #869
- [ts][config] add type definition for RemoteConfig module #1226
- [ts][iid] add getToken(string,string) and deleteToken(string,string) to typings
- [ts][auth] updated typings for PhoneAuthListener #1185
Misc
- Update fabric tools version to v1.25.4 #1269
Loving react-native-firebase
and the support we provide? Please consider supporting us with any of the below:
- 👉 Back financially via Open Collective
- 👉 Follow
React Native Firebase
andInvertase
on Twitter - 👉 Star this repo on GitHub ⭐️