question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase-iid no longer included in firebase-bom

See original GitHub issue

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-device-info@10.3.0 for the project I’m working on.

Due to an issue found in the android firebase crashlytics SDK it is recommended to update the firebase-bom version to 31.0.1. However, this new version of the bom now does not include the android firebase-iid sdk which is required by this library according to the build.gradle. I’m not entirely certain, but I believe that build.gradle will need an update so that a specific version of the firebase-iid sdk is used when the firebaseBomVersion variable is provided.

The patch diff below is probably not the fully correct way to resolve this, but perhaps it can give an indication of a best path forward to resolve this new issue.

Versions: react-native-device-info: 10.3.0 firebaseBomVersion: 31.0.1

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-device-info/android/build.gradle b/node_modules/react-native-device-info/android/build.gradle
index de22598..016776b 100644
--- a/node_modules/react-native-device-info/android/build.gradle
+++ b/node_modules/react-native-device-info/android/build.gradle
@@ -55,7 +55,7 @@ dependencies {
   def firebaseIidVersion = safeExtGet('firebaseIidVersion', null)
   if (firebaseBomVersion) {
       implementation platform("com.google.firebase:firebase-bom:${firebaseBomVersion}")
-      implementation "com.google.firebase:firebase-iid"
+      implementation "com.google.firebase:firebase-iid:${firebaseIidVersion}"
   } else if(firebaseIidVersion){
       implementation "com.google.firebase:firebase-iid:${firebaseIidVersion}"
   }else{

This issue body was partially generated by patch-package.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
aparicio08commented, Oct 27, 2022

Thank you @mikehardy that was very helpful and exactly what I needed. Good work on this library (and react-native-firebase)

0reactions
mikehardycommented, Oct 27, 2022

Glad that worked I was only 99% sure on it 😅. Worked for me but you never know…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase BOM doesnt' include com.google.firebase:firebase-iid
I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically....
Read more >
Firebase Android SDK Release Notes - Google
BREAKING CHANGE: With this release, the BoM no longer contains the following deprecated libraries: firebase-appindexing , firebase-core , and firebase-iid .
Read more >
android - The library com.google.firebase:firebase-iid is being ...
I started to get this error today, yesterday everything worked fine, there was no changes in gradle or firebase version.
Read more >
Firebase token retrieval failed on Android emulator
firebase :firebase-messaging-ktx included. Within the setup token retrieval process is working on a real device however can not retrieve the token on emulator ......
Read more >
Push Notifications - Android
To take advantage of push notifications you need to subscribe to a notification service. It is highly recommended that you use Firebase notifications...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found