Is Firebase callable function supported for use with react native?
I deployed an onCall function and I can see it in my dashboard
I also initalized functions using
// Initialize Cloud Functions through Firebase
firebase.functions();
And im calling the function using
const func = firebase.functions().httpsCallable('funcName');
func({
param1: '',
param2: '',
param3: '',
param4: ''
}).then(res => {
console.log('success')
console.log(res)
})
But every time i make the call the promise is rejected with message 'not-found'
my firebase version is 7.6.1
function code:
export const funcName = functions.https.onCall((data, context) =>
{
return { message: 'success' }
})