You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using BofA in stage on android, after completing the browser flow it comes back to the RN app, but the app is forced to reload from scratch and bad things (tm) happen. We can, in theory, try to make the plaid session work across app restarts, but (a) I don't know if the Plaid SDK will handle that and (b) it's going to be a pile of work for us to handle that too.
I think it could be related to react-native-splash-screen, but I am not clear on why it is restarting the intent.
I know a tiny bit more now. In normal cases, when our app is running and a deep link is opened, onNewIntent is called both on the splash activity and the main activity, but the app functions as normal and does not reload. BUT, when the Plaid Link SDK has been started and our app is backgrounded, when it comes back (regardless of whether that is after a completed oauth flow or not), our activity gets destroyed, and thus when the app comes back, onCreate is called, and a new app instance is required. This is not what we want, and I'm not entirely sure why the Plaid SDK causes it, but it doesn't seem like it's our bug. It's either "by design" for some reason, or a Plaid Android SDK issue?
And now more - I thought I was passing both redirect_uri and android_package_name, but it seems only redirect_uri was making it. It's a very strange failure mode, but I think the problem is I'm not supposed to pass redirect_uri at all.
The problem
When using BofA in stage on android, after completing the browser flow it comes back to the RN app, but the app is forced to reload from scratch and bad things (tm) happen. We can, in theory, try to make the plaid session work across app restarts, but (a) I don't know if the Plaid SDK will handle that and (b) it's going to be a pile of work for us to handle that too.
I think it could be related to react-native-splash-screen, but I am not clear on why it is restarting the intent.
crazycodeboy/react-native-splash-screen#289
Environment
Steps to Reproduce
Use link token to begin a Plaid session, select BofA, go out to browser and complete flow.
Expected Result
Resume app/intent/activity that was running when the user went to the browser.
The text was updated successfully, but these errors were encountered: