After creating a cloud function addMessage
on Firebase using Firebase SDK 4.12.0, the following code does not work when attempting to call the addMessage
function from within my client app:
var firebase = require("../node_modules/firebase")
var functions = firebase.functions();
functions.httpsCallable("addMessage").call(
//...
)
TypeError: firebase.functions is not a function
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…