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

Android can't resume activity when launching from app-icon in launcher #354

Closed
StefanWallin opened this issue Jan 29, 2024 · 2 comments
Closed
Labels
bug report when a bug report is created

Comments

@StefanWallin
Copy link
Contributor

StefanWallin commented Jan 29, 2024

Describe the bug
Almost all bank customers in Sweden have to do a 3DS-OOB-verification through another Native App called BankID. When switching to that app and coming back, not all issuers support redirectUri, so that has to be done manually.

To go back to our app, some of our Android-users use the app launcher and press our app-icon to resume the payment and submit additional details. This results in our app staying on the same screen(somehow magically through react-navigation I presume), but the Adyen Drop-In Component has now destroyed it's session so we never get any getAdditionalDetails-callback and the offer session is lost.

To Reproduce
Steps to reproduce the behavior:

  1. Open Drop-In component
  2. Enter details for 3DS-required-card
  3. Minimize the app
  4. Resume app from app-launcher (not app switcher)

Expected behavior
If we swap point 4 above with "Resume app from app swithcer", then the adyen drop-in component is still visible.
When starting the app from appIcon I expect to have the same behaviour that the drop-in component is still active

Screenshots
.mov Screenrecording: https://github.com/Adyen/adyen-react-native/assets/457653/0ded4e53-d7fc-4d45-a2b2-b8e7b788a952

Smartphone (please complete the following information):

  • Device: Simulator/Samsung Galaxy A13/Huawei
  • OS, at least: Android 11-13
  • Browser n/a
  • Version n/a

Additional context
adyen-react-native: 1.2.0

@StefanWallin StefanWallin added the bug report when a bug report is created label Jan 29, 2024
@StefanWallin
Copy link
Contributor Author

StefanWallin commented Jan 29, 2024

A potential workaround would be for us to store data from our api-request in the onSubmit-callback in local storage, then on component rerender upon activity restart, check for that data and somehow be able to call nativeComponent.handle(data), but we don't have access to nativeComponent in that scope.

To be able to do that we would need to be able to check if the adyen drop-in component is active so as to not trigger multiple nativeComponent.handle(data).

Thanks in advance and please advice on sane ways forward.

@descorp
Copy link
Contributor

descorp commented Jan 29, 2024

Hey @StefanWallin

This is known issue.
I would suggest to continue discussion in original topic.

@descorp descorp closed this as completed Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report when a bug report is created
Projects
None yet
Development

No branches or pull requests

2 participants