Firebase Functions httpsCallable returns error on Android after every deploy of function #1108
Description
Hello. It is being a while since I am having this issue but I was not sure where it was coming from.
Every time I make a deploy to a cloud function, the first time I call this function after it has been deployed I get the following error from the plugin, even knowing that the function worked properly:
Error Caught: Error: com.google.android.gms.tasks.RuntimeExecutionException: java.net.SocketTimeoutException: timeout JS: com.google.android.gms.tasks.zzu.getResult(Unknown Source) JS: com.tns.Runtime.callJSMethodNative(Native Method) JS: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1120) JS: com.tns.Runtime.callJSMethodImpl(Runtime.java:1000) JS: com.tns.Runtime.callJSMethod(Runtime.java:987) JS: com.tns.Runtime.callJSMethod(Runtime.java:967) JS: com.tns.Runtime.callJSMethod(Runtime.java:959) JS: com.tns.gen.com.google.android.gms.tasks.Continuation.then(Continuation.java:16) JS: com.google.android.gms.tasks.zzd.run(Unknown Source) JS: android.os.Handler.handleCallback(Handler.java:754) JS: android.os.Handler.dispatchMessage(Handler.java:95) JS: android.os.Looper.loop(Looper.java:165) JS: android.app.ActivityThread.main(ActivityThread.java:6375) JS: java.lang.reflect.Method.invoke(Native Method) JS: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:883) JS: com.android.int...
To reproduce this is very easy. Call a function, deploy it on firebase and call it again on the app. The first time it is called again it returns this timeout error.