GodotNuts / GodotFirebase

Implementations of Firebase for Godot using GDScript
MIT License
532 stars 76 forks source link

[FEATURE REQUEST] Implement Firebase Cloud Functions API #213

Closed itsarjunsinh closed 2 years ago

itsarjunsinh commented 3 years ago

Hello! Thanks for this much-needed project. It's great!

Is your feature request related to a problem? Please describe. To use cloud functions, Godot projects need to write helpers to make http calls with specific headers and auth tokens. Ideally it should be in the Firebase client sdk.

Describe the solution you'd like Provide API to call Firebase Cloud functions like official Firebase client sdks.

Additional context Firebase Docs: Callable functions (client) Firebase Docs: Protocol specification for https.onCall Classes/approach in client sdk for Flutter

WolfgangSenff commented 3 years ago

Oh! That's actually a relatively new API, didn't know it existed. I'll look into it and likely implement it myself. Thanks!

WolfgangSenff commented 3 years ago

While I implement this, by the way, you know you can have these be called indirectly through changes in the database and Firestore (and almost everything), right? Just want to make sure you're not blocked, @itsarjunsinh.

itsarjunsinh commented 3 years ago

It didn't occur to me. It is a pretty clever short-term solution. Thanks. Edit: To clarify, I'm not really blocked, since I still haven't moved away from Unity. I'm keeping tabs on Godot and and your project for now with the hope of using it in the future.

WolfgangSenff commented 3 years ago

It's actually the original way to handle it - Functions originally weren't able to be called directly. :P You could only trigger them via changes to things, because of how they're built in node.