-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloud function with angularfire2 #856
Comments
You have to use the Firebase CLI to deploy your functions to Firebase. Cloud functions are backend related, not frontend. As far as I know AngularFire is not related to Cloud Functions |
@johnqiuwan Server events are triggered by events. @frankspin89 is right in saying we don't have any direct integrations. |
Thank you @davideast and @frankspin89 If I understand correct, we need to use raw firebase sdk to implement cloud functions. |
Hi there, I understand that AngularFire2 is for Frontend purposes, and Cloud Functions are for backend, but it'd be nice to be able to rely on 1 single API (ie AngularFire2) when starting on a new Angular Firebase Project. I think it'd be great to be able to use AngularFire2 API to fetch data for example, inside a Function, instead of using firebase-admin, by doing As of today, are there any plans to support writing Functions extending AngularFire2 ? |
I'd agree with @johanchouquet , especially since much of angularfire is a lightweight wrapper over firebase's rest api, incorporating a simple fetch utility for "cloud function"-specific restful requests might prove useful. |
@johanchouquet @yejodido Cloud Functions recently implemented a client SDK for "callable functions" and we have a PR #1532 to support it. So follow that and wait just a little longer. |
Any update on when we can expect this PR? I'm hoping with PR #1532 that I will be able to use an angularfire2 wrapper for callable functions and not have to deal with the issue below. Currently trying to work around it, but I am getting
UPDATE: For those doing the same thing I am doing, wrapping firebase in an object fixes my problem |
@Mercieral whenever you get anything like you can just cast it as :) |
I see that PR #1532 has been accepted. Are there any examples on how to use this? I tried using like in the firebase docs but I end up with "Object is not a function" error. |
@Tristan10 have you found any examples? |
Hi Guys,
I am very excited that the cloud function is working with firebase now !
Just a quick question, does anyone know if angularfire2 support cloud function or we need to use firebase sdk to work with cloud function for now?
Thank you
The text was updated successfully, but these errors were encountered: