I'm using Firebase Cloud Functions library on Android and using getHttpsCallable to call a cloud function.
The problem is that the function needs 15-20 seconds to return the result back to the client, so the client throws an exception java.net.SocketTimeoutException: timeout.
Is there any way to change the timeout?
The most recent version of the SDK adds setTimeout and withTimeout methods that let you configure a custom timeout.
See the docs here: https://firebase.google.com/docs/reference/android/com/google/firebase/functions/HttpsCallableReference
Release Notes: https://firebase.google.com/support/release-notes/android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With