skip to Main Content

Widget Test – "MethodChannelFirebase.channel" the getter channel isn't defined for the type MethodChannelFirebase. What is the current best practice?

Previously I used the following code to ensure Firebase was initialised ... typedef Callback = void Function(MethodCall call); void setupFirebaseAuthMocks([Callback? customHandlers]) { TestWidgetsFlutterBinding.ensureInitialized(); setupFirebaseCoreMocks(); ///todo fix this MethodChannelFirebase.channel.setMockMethodCallHandler((call) async { if (call.method == 'Firebase#initializeCore') { return [ { 'name': defaultFirebaseAppName,…

VIEW QUESTION

Flutter giving No known class method for selector 'appleCredentialWithIDToken:rawNonce:fullName:'

I updated my flutter project's following two dependencies: firebase_auth: ^4.4.0 firebase_core: ^2.9.0 And since then whenever I try to launch the project I get ARC Semantic Issue (Xcode): No known class method for selector 'appleCredentialWithIDToken:rawNonce:fullName:' /Users/saadbashir/.pub-cache/hosted/pub.dev/firebase_auth-4.4.0/ios/Classes/FLTFirebaseAuthPlugin.m:592:26 Following are the dependencies…

VIEW QUESTION
Back To Top
Search