Description
Bug report
Describe the bug
2nd gen callable functions don't yet have stable URLs, so an extra argument is needed to get the callable instance. Since FlutterFire doesn't support this, it isn't currently possible to call 2nd gen callable functions using FlutterFire.
Expected behavior
FlutterFire offers a function that takes a callable function's URL as an argument, similar to iOS' httpsCallable(URL)
overload, the JS SDK's httpsCallableFromURL
, and Android's getHttpsCallableFromUrl
.
Additional context
1st gen functions have stable, guessable cloudfunctions.net
URLs, so the client SDKs don't need to be told what a function's URL is. We're working on adding stable URLs to 2nd gen functions, but until they're available, URLs look like https://<functionName>-<randomHash>-<region>.a.run.app/addMessage
and aren't guessable.