I tried to add this code in Firebase Cloud Function:
exports.getTime = functions.https.onCall((data,context)=>{
return Date.now()
})
But I am getting this error upon checking on a browser but I am planning to use this on Android.
{"error":{"message":"Bad Request","status":"INVALID_ARGUMENT"}}
Do I miss something?