Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK version 4.1.0 exits immediately after launch #260

Closed
tadfisher opened this issue Jan 17, 2024 · 9 comments
Closed

SDK version 4.1.0 exits immediately after launch #260

tadfisher opened this issue Jan 17, 2024 · 9 comments

Comments

@tadfisher
Copy link

The problem

Using the native SDK, launching via the OpenPlaidLink() contract results in a short loading screen, then LinkActivity finishes immediately after calling the workflow endpoint. The Link flow works correctly on version 4.0.0, and exhibits this behavior on version 4.1.0.

When this occurs, no logs are printed to Logcat (with LinkLogLevel.VERBOSE) and we receive a LinkExit result with all fields set to null. No activity is logged with my client_user_id in either Logs or Item Debugger.

Environment

Android OS Version 14 (34)
Android Devices/Emulators Pixel 7 Pro, Pixel 6 Pro, emulator

Steps to Reproduce

Token configuration:

{
   "client_id":"OMITTED",
   "secret":"OMITTED",
   "user":{
      "client_user_id":"OMITTED",
   },
   "client_name":"Mercury",
   "products":[
      "auth",
      "transactions"
   ],
   "country_codes":[
      "US"
   ],
   "language":"en",
   "webhoook":"OMITTED",
   "android_package_name":"com.mercury.bank.dev"
}

Logs

logcat session

Code To Reproduce Issue

This is a Compose application, but that shouldn't affect much (and this code works with 4.0.0):

// For example
@Composable
fun LaunchPlaidButton(val token: String, onResult: (LinkResult) -> Unit) {
    val launcher = rememberLauncherForActivityResult(OpenPlaidLink(), onResult)
    Button(
        onClick = {
            launcher.launch(linkTokenConfiguration {
                logLevel = LinkLogLevel.VERBOSE
                this.token = token
            })
        },
    ) {
        Text("Launch Plaid Link")
    }
}
@dseverns-livefront
Copy link

Plus one to this, just started working with Plaid so no example of working but exactly the same scenario listed here. Also attempted with this sample app and same result.

@eric-labelle
Copy link

@tadfisher / @dseverns-livefront mind looking with StrictMode? Probably the same issue I filed earlier this week.

@melissaosullivan
Copy link
Contributor

Hi,

I double checked that this sample app is not seeing this auto-close issue on 4.1.0. I also built a small demo with compose and I can't reproduce the issue described. Could you please provide a sample app which displays this issue?

Thanks,
Melissa

@dseverns-livefront
Copy link

@melissaosullivan I tried this with the Plaid sample, only change I made was changing the product to auth to match my Plaid accounts, Can confirm after I tried version 4.0.0 it worked for me.

@dseverns-livefront
Copy link

@eric-labelle 4.1 was not working for me with and without strict mode enabled and never saw that stack trace. 4.0 works for both configs though.

@melissaosullivan
Copy link
Contributor

@dseverns-livefront I'm not able to reproduce this issue so far. A few questions:

  • What do you mean by "changing the product to auth to match my Plaid accounts?" Is this referring to the token creation request?
  • Are you using a sandbox token?

@melissaosullivan
Copy link
Contributor

@tadfisher @dseverns-livefront I think I've found the issue and addressed this in the 4.1.1 release. Please try out this version. Thanks.

@dseverns-livefront
Copy link

What do you mean by "changing the product to auth to match my Plaid accounts?" Is this referring to the token creation request?
Are you using a sandbox token?

Sorry, I changed the array in the server config to replace "transactions" with "auth" and yes it was sandbox tokens

@melissaosullivan
Copy link
Contributor

Closing this ticket as this issue has been addressed in 4.1.1. Please upgrade to that version. Thanks for reporting this bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants