Call a Callable Function How to Call a Callable Function from your Frontend Code

file_type_js_official foo.js
document.addEventListener('DOMContentLoaded', function() {

    let app = firebase.app();


    const sendText = firebase.functions().httpsCallable('sendText');

    sendText({ message: 'Hello World!' })
});

Q&A Chat