plaid / react-native-plaid-link-sdk

Plaid Link for React Native
MIT License
173 stars 120 forks source link

Android crash - Failure delivering result ResultInfo #37

Closed makx closed 4 years ago

makx commented 4 years ago

This error is thrown when i sign in using react-native-google-signin. The thing is that the error happens on com.plaid.PlaidModule.onActivityResult(PlaidModule.kt:222) ... if (data.extras != null) { result.putMap(DATA, Arguments.makeNativeMap(data.extras)) // <--- ?????? } ... it looks that there is something weird around this line of code and i don't understand the purpose of this line.

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.eltonai, PID: 12251 java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=9001, result=-1, data=Intent { (has extras) }} to activity {com.eltonai/com.eltonai.MainActivity}: java.lang.IllegalArgumentException: Could not convert class com.google.android.gms.auth.api.signin.GoogleSignInAccount at android.app.ActivityThread.deliverResults(ActivityThread.java:4845) at android.app.ActivityThread.handleSendResult(ActivityThread.java:4886) at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) Caused by: java.lang.IllegalArgumentException: Could not convert class com.google.android.gms.auth.api.signin.GoogleSignInAccount at com.facebook.react.bridge.Arguments.addEntry(Arguments.java:117) at com.facebook.react.bridge.Arguments.makeNativeMap(Arguments.java:147) at com.plaid.PlaidModule.onActivityResult(PlaidModule.kt:222) at com.facebook.react.bridge.ReactContext.onActivityResult(ReactContext.java:277) at com.facebook.react.ReactInstanceManager.onActivityResult(ReactInstanceManager.java:704) at com.facebook.react.ReactActivityDelegate.onActivityResult(ReactActivityDelegate.java:129) at com.facebook.react.ReactActivity.onActivityResult(ReactActivity.java:75) at android.app.Activity.dispatchActivityResult(Activity.java:8110) at android.app.ActivityThread.deliverResults(ActivityThread.java:4838)

zsweigart commented 4 years ago

Hi @makx what version of the sdk are you using? We just released version 3.0

makx commented 4 years ago

@zsweigart i'm using the 2.0.1.

zsweigart commented 4 years ago

Can you upgrade to 3.0?

vafada commented 4 years ago

This is also happening when logging in via facebook

mscott-nimbly commented 4 years ago

This is also happening when using Braintree payments and Plaid sdk version 3.0.1

ShaharyarMaroof commented 4 years ago

I am also facing the same issue with Google Fit Integration and Plaid SDK on 3.0.1 @zsweigart any updates on this issue?

ShaharyarMaroof commented 4 years ago

hey @makx did you manage to solve this issue?

makx commented 4 years ago

not yet

realabbas commented 4 years ago

Hey I am facing this too. Any update? how to solve this @afh @wkiefer @maxdjohnson @cgfarmer4 @vafada @ShaharyarMaroof @makx

makx commented 4 years ago

i can't tell you if it is solved. i left the project and i couldn't figure out this.

amytang0 commented 4 years ago

Hi, can you try upgrading to v5.0.1 and see if that resolves the issue?