Skip to content

🐛 [cloud_functions] Can't call 2nd gen functions due to missing httpsCallableFromURL method #10541

Closed
@jhuleatt

Description

@jhuleatt

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.

Metadata

Metadata

Assignees

Labels

plugin: functionsresolution: fixedA fix has been merged or is pending merge from a PR.type: enhancementNew feature or requesttype: missing-featureA feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions