google-cloud-functions

Unable to perform Cloud Function trigger a HTTP triggered Cloud Function that doesn't allow unauthenticated invocations?

↘锁芯ラ 提交于 2020-04-16 05:48:13
问题 I have a situation where I am trying to create two Cloud Functions namely CF1 & CF2 and I have one Cloud Scheduler. Both cloud functions are having authenticated invocation enabled. My flow is Cloud Scheduler will trigger CF1. On completion of CF1, the CF1 will trigger CF2 as a http call. I have referred Cannot invoke Google Cloud Function from GCP Scheduler to access authenticated CF1 from Cloud Scheduler and able to access CF1. But I am getting problem when accessing CF2 from CF1. The CF1

Converting audio file when uploaded to google cloud storage

自闭症网瘾萝莉.ら 提交于 2020-04-15 06:42:14
问题 I have an app, where users record audio and then "send" to each other. I'm writing "send", because actually the file is stored on server, and just provided to the recipient, when they want to listen. My issue is, that I need to reformat the recording (currently .caf) to .mp3, so they will be both smaller and so I can play them with the audioplayer I'm using. My question then is: Is it possible to have a cloud function trigger on user upload, that would take the .caf file, convert it and in

Converting audio file when uploaded to google cloud storage

坚强是说给别人听的谎言 提交于 2020-04-15 06:41:42
问题 I have an app, where users record audio and then "send" to each other. I'm writing "send", because actually the file is stored on server, and just provided to the recipient, when they want to listen. My issue is, that I need to reformat the recording (currently .caf) to .mp3, so they will be both smaller and so I can play them with the audioplayer I'm using. My question then is: Is it possible to have a cloud function trigger on user upload, that would take the .caf file, convert it and in

Converting audio file when uploaded to google cloud storage

牧云@^-^@ 提交于 2020-04-15 06:41:20
问题 I have an app, where users record audio and then "send" to each other. I'm writing "send", because actually the file is stored on server, and just provided to the recipient, when they want to listen. My issue is, that I need to reformat the recording (currently .caf) to .mp3, so they will be both smaller and so I can play them with the audioplayer I'm using. My question then is: Is it possible to have a cloud function trigger on user upload, that would take the .caf file, convert it and in

Firebase + Flutter - Cloud functions onCall result in “unauthenticated” error from Android app

耗尽温柔 提交于 2020-04-13 06:46:42
问题 I have deployed the following test https.onCall function to Cloud Functions on firebase - deployed using node 10: export const helloWorld = functions.https.onCall((data, context) => { return { "message": "Hello, world", } }); This function returns as expected when tested from a node environment. However, within my flutter (android) app - using the Cloud functions plugin for Flutter, I'm getting the following authentication error, despite being logged in (via phone number auth): Flutter code:

Firebase + Flutter - Cloud functions onCall result in “unauthenticated” error from Android app

半世苍凉 提交于 2020-04-13 06:46:11
问题 I have deployed the following test https.onCall function to Cloud Functions on firebase - deployed using node 10: export const helloWorld = functions.https.onCall((data, context) => { return { "message": "Hello, world", } }); This function returns as expected when tested from a node environment. However, within my flutter (android) app - using the Cloud functions plugin for Flutter, I'm getting the following authentication error, despite being logged in (via phone number auth): Flutter code:

Cloud Functions for Firebase - write to database when a new user created

匆匆过客 提交于 2020-04-09 08:15:36
问题 I am pretty new Cloud Functions for Firebase and the javascript language. I am trying to add a function every time a user created to write into the database. This is my code: const functions = require('firebase-functions'); const admin = require('firebase-admin'); admin.initializeApp(functions.config().firebase); exports.addAccount = functions.auth.user().onCreate(event => { const user = event.data; // The firebase user const id = user.uid; const displayName = user.displayName; const photoURL

Cloud Functions for Firebase - write to database when a new user created

我怕爱的太早我们不能终老 提交于 2020-04-09 08:13:25
问题 I am pretty new Cloud Functions for Firebase and the javascript language. I am trying to add a function every time a user created to write into the database. This is my code: const functions = require('firebase-functions'); const admin = require('firebase-admin'); admin.initializeApp(functions.config().firebase); exports.addAccount = functions.auth.user().onCreate(event => { const user = event.data; // The firebase user const id = user.uid; const displayName = user.displayName; const photoURL

Cloud Functions for Firebase - write to database when a new user created

时光怂恿深爱的人放手 提交于 2020-04-09 08:11:02
问题 I am pretty new Cloud Functions for Firebase and the javascript language. I am trying to add a function every time a user created to write into the database. This is my code: const functions = require('firebase-functions'); const admin = require('firebase-admin'); admin.initializeApp(functions.config().firebase); exports.addAccount = functions.auth.user().onCreate(event => { const user = event.data; // The firebase user const id = user.uid; const displayName = user.displayName; const photoURL

Cloud Functions for Firebase - write to database when a new user created

别说谁变了你拦得住时间么 提交于 2020-04-09 08:10:20
问题 I am pretty new Cloud Functions for Firebase and the javascript language. I am trying to add a function every time a user created to write into the database. This is my code: const functions = require('firebase-functions'); const admin = require('firebase-admin'); admin.initializeApp(functions.config().firebase); exports.addAccount = functions.auth.user().onCreate(event => { const user = event.data; // The firebase user const id = user.uid; const displayName = user.displayName; const photoURL