Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.34k stars 2.77k forks source link

Plaid modal is no longer opening on Android #4959

Closed marcaaron closed 3 years ago

marcaaron commented 3 years ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

Try to add a bank account via Plaid

Expected Result:

Plaid modal opens and we are able to do so (works on staging)

Actual Result:

White screen + nothing happens

Workaround:

No

Platform:

Version Number: Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL:

View all open jobs on GitHub

marcaaron commented 3 years ago

Coming in from https://github.com/Expensify/App/pull/4944#issuecomment-909615573

marcaaron commented 3 years ago
  1. The issue was reproduced on main locally
  2. The issue is not reproduced on the latest Play Store build
  3. Going to try to test staging locally to see if this can be reproduced there
marcaaron commented 3 years ago

@Julesssss @luacmartins the issue is reproducible on the staging branch too. Which likely means this isn't a deploy blocker. But should be resolved so we can test this on dev.

I'll try to see what else could be causing this. It was working... and now isn't... but the code changes around this stuff have been pretty minimal so I'm guessing some kind of dependency broke this. But honestly not too sure.

marcaaron commented 3 years ago

Ok so I updated the react-native-plaid-link-sdk package to see if that would help at all and it did. I think updating to the latest version of React Native must have broken this. I'm going to push up the version bump and test to make sure that iOS is still good as well.

marcaaron commented 3 years ago

The only thing I'm noticing is that the Plaid modal is well... super slow to load... but it does work eventually. Maybe we can create another issue to address that or bring it to Plaid's attention.

marcaaron commented 3 years ago

Oh that and I think the API changed because everything breaks once you pick an account. Nice! React Native ftw πŸ˜„

write once, break everywhere

:trollface:

Edit: JK it's fine my phone got unplugged from metro πŸ˜‚

marcaaron commented 3 years ago

Seeing an error that looks like this now:

ERROR Invariant Violation: No callback found with cbID 7424 and callID 3712 for PlaidAndroid.startLinkActivityForResult - most likely the callback was already invoked. Args: '[{"publicToken":"sadfasdfasdf","metadata":{"metadataJson":"{\"institution\":{\"name\":\"Chase\",\"institution_id\":\"ins_3\"},\"account\":{\"id\":null,\"name\":null,\"type\":nul...(truncated)...","linkSessionId":"43241cdf-5ac7-465c-ae61-cbfcb2e0ad29","institution":{"name":"Chase","id":"ins_3"},"accounts":[{"subtype":"checking","mask":"0000","name":"Plaid Checking","type":"depository","id":"xaaKnjeRvRfjdD1evna4fwLV8mDQWQU9kZ8Ga"},{"subtype":"savings","mask":"1111","name":"Plaid Saving","type":"depository","id":"dooZ6LnN1Nu8gB3rwNXzSLWnNyPawaiPlq7Wj"}]}}]', js engine: hermes

marcaaron commented 3 years ago

Ok I think maybe it was just a caching issue. Seems to be working now on Android. Moving on to iOS testing.

Julesssss commented 3 years ago

Thanks for looking into this. Let us know when the PR comes off hold and can be tested.

Julesssss commented 3 years ago

Leaving a reminder here that this PR should be retested after this is merged.

marcaaron commented 3 years ago

Hey @Julesssss I re-tested your branch and looks good with the changes. No password field appears and able to advance further without one.

https://user-images.githubusercontent.com/32969087/131751361-927681ec-9b2b-4186-b7de-af2b44be3d58.mp4

Julesssss commented 3 years ago

Perfect, thanks again for looking into this and for following up.

Julesssss commented 3 years ago

That reminder was for myself, but I see it wasn't that clear now, I hope you didn't feel like I was asking you to do that 😬

botify commented 3 years ago

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

marcaaron commented 3 years ago

That reminder was for myself, but I see it wasn't that clear now, I hope you didn't feel like I was asking you to do that 😬

Ah nah yer good ! Just trying to do ya a solid.

botify commented 3 years ago

πŸš€ Deployed to staging by @luacmartins in version: 1.0.92-1 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 failure ❌
πŸ•Έ web πŸ•Έ success βœ…
botify commented 3 years ago

πŸš€ Deployed to production by @roryabraham in version: 1.0.93-1 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ