Getting "Unresolved reference: registerWith" error for FlutterFirebaseFirestorePlugin.registerWith #8846
Unanswered
rahuldubey11
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
In my Flutter project, I use background isolate to execute some code. For the background isolate I need 3 Firebase plugins so I was using the below code before upgrading the Firebase plugins:
FlutterFirebaseAuthPlugin.registerWith(nativeView.pluginRegistry.registrarFor("io.flutter.plugins.firebase.auth.FlutterFirebaseAuthPlugin"))
FlutterFirebaseFirestorePlugin.registerWith(nativeView.pluginRegistry.registrarFor("io.flutter.plugins.firebase.firestore.FlutterFirebaseFirestorePlugin"))
FlutterFirebaseCorePlugin.registerWith(nativeView.pluginRegistry.registrarFor("io.flutter.plugins.firebase.core.FlutterFirebaseCorePlugin"))
But after the update I get "Unresolved reference: registerWith" for all the 3 plugins and the build fails.
Can someone please help me register these plugins individually.
P.S. I understand registerWith function is deprecated, but I couldn't find its alternative.
Beta Was this translation helpful? Give feedback.
All reactions