Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@collinjackson
Copy link
Contributor

@collinjackson collinjackson requested a review from mklim February 21, 2019 15:52
FirebaseFunctions.getInstance().getHttpsCallable(functionName);
Map<String, Object> parameters = call.argument("parameters");
String appName = call.argument("app");
FirebaseApp app = FirebaseApp.getInstance(appName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if appName is null do we want FirebaseApp.getInstance(), thats for default FirebaseApp as opposed to FirebaseApp.getInstance(null) which might throw? (it's not very clear per docs https://firebase.google.com/docs/reference/android/com/google/firebase/FirebaseApp.html#getInstance(java.lang.String))

Copy link
Contributor Author

@collinjackson collinjackson Feb 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think appName cannot be null with the firebase_core plugin that we are depending on. There is an assert(name != null) in firebase_core. The default app is named __FIRAPP_DEFAULT on iOS and [DEFAULT] on Android.

Note that app can't be null either; see the Dart CloudFunctions constructor.

@cyanglaz
Copy link
Contributor

download

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants