diff --git a/android/src/main/java/io/fullstack/firestack/FirestackAuth.java b/android/src/main/java/io/fullstack/firestack/FirestackAuth.java index 676b27f..5245daf 100644 --- a/android/src/main/java/io/fullstack/firestack/FirestackAuth.java +++ b/android/src/main/java/io/fullstack/firestack/FirestackAuth.java @@ -598,7 +598,16 @@ public void userExceptionCallback(Exception exp, final Callback onFail) { Log.e(TAG, ex.getMessage()); } - onFail.invoke(error); + try { + onFail.invoke(error); + } catch (RuntimeException ex) { + // Firebase tries to login 3 times, so the callback might + // be called as much as that. This will prevent a crash in case + // the callback throws the following error: + // java.lang.RuntimeException: Illegal callback invocation from native module. This callback type only permits a single invocation from native code. + Log.e(TAG, ex.getMessage()); + } + } private WritableMap getUserMap() { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy