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

Black screen appears during PlaidLink.open #98

Open
gilescm opened this issue Apr 18, 2023 · 1 comment
Open

Black screen appears during PlaidLink.open #98

gilescm opened this issue Apr 18, 2023 · 1 comment

Comments

@gilescm
Copy link

gilescm commented Apr 18, 2023

Hi, firstly thanks for this plugin! I am a developer at GoHenry, we've been using plaid_flutter for a long time now and it works great.

We have found a minor issue on Android devices. A temporary black screen always appears during the initial load of the plaid webview flow. In the project we have used plaid_flutter versions 2.2.2 and then recently 3.1.1. The black screen issue occurs in both, the attached video is using v3.1.1 and Google Pixel 5 with Android 13. Is it possible to look into this? I'm expect this is probably a platform quirk that can't be avoided but raising this issue anyway in case it is something that the plaid sdk has control over.

This has also been found on Samsung, Galaxy S10, Android 12.

Black.screen.mp4

Flutter logs when PlaidLink.open(configuration: LinkTokenConfiguration(token: linkToken)) is called:

I/AudiofileplayerPlugin( 1299): LifecycleCallbacks.onActivityCreated
I/AudiofileplayerPlugin( 1299): LifecycleCallbacks.onActivityStarted
I/AudiofileplayerPlugin( 1299): LifecycleCallbacks.onActivityResumed
E/OpenGLRenderer( 1299): Unable to match the desired swap behavior.
W/Parcel  ( 1299): Expecting binder but got null!
D/TrafficStats( 1299): tagSocket(130) with statsTag=0xffffffff, statsUid=-1
I/AudiofileplayerPlugin( 1299): LifecycleCallbacks.onActivityStopped
I/chromium( 1299): [INFO:CONSOLE(0)] "The resource https://cdn.plaid.com/link/2.0.1520/assets/fonts/cern-extrabold.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.", source: https://secure.plaid.com/link/v2/stable/link.html?androidSdkImplementation=inProcess&env=sandbox&isMobile=true&isWebview=true&linkOpenId=ebb650f3-2312-4c83-a646-63a801457f13&linkPersistentId=ceab26fe-699c-44b2-bf16-d3de1ec38222&linkSdkVersion=3.11.0&token=link-sandbox-d4e1f61c-eaf0-47fc-a931-6f104d1d240d&webviewFallbackId=baa4e616-8dc6-45b6-a0d2-98d38c3f2f38 (0)
I/chromium( 1299): [INFO:CONSOLE(0)] "The resource https://cdn.plaid.com/link/2.0.1520/assets/fonts/cern-regular.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.", source: https://secure.plaid.com/link/v2/stable/link.html?androidSdkImplementation=inProcess&env=sandbox&isMobile=true&isWebview=true&linkOpenId=ebb650f3-2312-4c83-a646-63a801457f13&linkPersistentId=ceab26fe-699c-44b2-bf16-d3de1ec38222&linkSdkVersion=3.11.0&token=link-sandbox-d4e1f61c-eaf0-47fc-a931-6f104d1d240d&webviewFallbackId=baa4e616-8dc6-45b6-a0d2-98d38c3f2f38 (0)
I/chromium( 1299): [INFO:CONSOLE(0)] "The resource https://cdn.plaid.com/link/2.0.1520/assets/fonts/cern-medium.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.", source: https://secure.plaid.com/link/v2/stable/link.html?androidSdkImplementation=inProcess&env=sandbox&isMobile=true&isWebview=true&linkOpenId=ebb650f3-2312-4c83-a646-63a801457f13&linkPersistentId=ceab26fe-699c-44b2-bf16-d3de1ec38222&linkSdkVersion=3.11.0&token=link-sandbox-d4e1f61c-eaf0-47fc-a931-6f104d1d240d&webviewFallbackId=baa4e616-8dc6-45b6-a0d2-98d38c3f2f38 (0)
I/chromium( 1299): [INFO:CONSOLE(0)] "The resource https://cdn.plaid.com/link/2.0.1520/assets/fonts/cern-semibold.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.", source: https://secure.plaid.com/link/v2/stable/link.html?androidSdkImplementation=inProcess&env=sandbox&isMobile=true&isWebview=true&linkOpenId=ebb650f3-2312-4c83-a646-63a801457f13&linkPersistentId=ceab26fe-699c-44b2-bf16-d3de1ec38222&linkSdkVersion=3.11.0&token=link-sandbox-d4e1f61c-eaf0-47fc-a931-6f104d1d240d&webviewFallbackId=baa4e616-8dc6-45b6-a0d2-98d38c3f2f38 (0)

flutter doctor:

[✓] Flutter (Channel stable, 3.3.10, on macOS 13.2.1 22D68 darwin-arm, locale en-NL)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.77.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!
@jorgefspereira
Copy link
Owner

Hi @gilescm, the issue is probably more related to the Plaid SDK itself than plugin. Sill I'll take a look into it 👍

Either way it's useful to have this issue reported here so we can keep track of it.

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

2 participants