Closed StefanWallin closed 8 months ago
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.
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:
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-b8e7b788a952Smartphone (please complete the following information):
n/a
n/a
Additional context adyen-react-native:
1.2.0