Adyen / adyen-android

Adyen Android Drop-in and Components
https://docs.adyen.com/checkout/android
MIT License
126 stars 65 forks source link

3ds2 Challenge activity not being finished #723

Closed deividasstr closed 2 years ago

deividasstr commented 2 years ago

Describe the bug After the 3ds2 is completed (by cancelling or , making a wrong input or completing successfully), the ChallengeActivity remains in the background app stack.

To Reproduce Steps to reproduce the behavior:

  1. Go to 3ds2 challenge screen
  2. Click on 'Cancel`
  3. Check the background apps
  4. Along with our app, a separate Challenge activity is also there (with our app logo). If opened, it either is a blank white screen with empty navigation bar OR a proper 3ds2 challenge screen with buttons (cancel and submit) not responding to the input.

Expected behavior There is no other activity of our app, just the main app.

Smartphone (please complete the following information):

Additional context Seems like the ChallengeActivity is not being properly finished?

Some system logs, not sure if helpful: 2022-06-21 18:00:40.337 1522-1988/? I/ActivityTaskManager: START u0 {act=ChallengeActivity.ACTION_SHOW_PROCESSING cmp=com.vinted.global.dev/com.adyen.threeds2.internal.ui.activity.ChallengeActivity} from uid 10375 2022-06-21 18:00:40.458 17457-17457/com.vinted.global.dev D/FirebasePerformance: Setting attribute 'Hosting_activity' to 'ChallengeActivity' on trace '_st_c' 2022-06-21 18:00:40.530 1522-1888/? I/ActivityTaskManager: Displayed com.vinted.global.dev/com.adyen.threeds2.internal.ui.activity.ChallengeActivity: +193ms 2022-06-21 18:00:40.569 6063-18364/? V/FA-SVC: Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{portal=fr_sandbox, anon_id=fe102986-4245-47c8-a2ed-30e6c0910494, user_id=1653660, ga_event_origin(_o)=auto, ga_previous_class(_pc)=ShippingSelectionFragment, ga_previous_id(_pi)=3577280722182120922, ga_previous_screen(_pn)=none, ga_screen_class(_sc)=ChallengeActivity, ga_screen_id(_si)=3577280722182120923}] 2022-06-21 18:00:40.708 1522-8344/? I/ActivityTaskManager: START u0 {act=ChallengeActivity.ACTION_SHOW_CHALLENGE cmp=com.vinted.global.dev/com.adyen.threeds2.internal.ui.activity.ChallengeActivity (has extras)} from uid 10375 2022-06-21 18:00:40.734 1522-1988/? W/InputManager-JNI: Input channel object '6295868 com.vinted.global.dev/com.adyen.threeds2.internal.ui.activity.ChallengeActivity (client)' was disposed without first being removed with the input manager! 2022-06-21 18:00:40.953 6063-18364/? V/FA-SVC: Logging event: origin=app,name=bundle_size_range_activity,params=Bundle[{portal=fr_sandbox, anon_id=fe102986-4245-47c8-a2ed-30e6c0910494, user_id=1653660, ga_event_origin(_o)=app, ga_screen_class(_sc)=ChallengeActivity, ga_screen_id(_si)=3577280722182120923, install_source=Organic, size_kb=0..100 kb}] 
// Pressing cancel
 2022-06-21 18:00:48.488 1522-7603/? I/ActivityTaskManager: START u0 {act=ChallengeActivity.ACTION_SHOW_PROCESSING cmp=com.vinted.global.dev/com.adyen.threeds2.internal.ui.activity.ChallengeActivity} from uid 10375 2022-06-21 18:00:48.519 17457-17457/com.vinted.global.dev D/FirebasePerformance: Setting attribute 'Hosting_activity' to 'ChallengeActivity' on trace '_st_c' 2022-06-21 18:00:48.597 1522-3890/? I/ActivityTaskManager: START u0 {act=ChallengeActivity.ACTION_FINISH_CHALLENGE cmp=com.vinted.global.dev/com.adyen.threeds2.internal.ui.activity.ChallengeActivity} from uid 10375 2022-06-21 18:00:48.607 6063-18364/? V/FA-SVC: Logging event: origin=auto,name=user_engagement(_e),params=Bundle[{portal=fr_sandbox, anon_id=fe102986-4245-47c8-a2ed-30e6c0910494, user_id=1653660, ga_event_origin(_o)=auto, engagement_time_msec(_et)=7720, ga_screen_class(_sc)=ChallengeActivity, ga_screen_id(_si)=3577280722182120923}] 2022-06-21 18:00:48.728 6063-18364/? V/FA-SVC: Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{portal=fr_sandbox, anon_id=fe102986-4245-47c8-a2ed-30e6c0910494, user_id=1653660, ga_event_origin(_o)=auto, ga_previous_class(_pc)=ChallengeActivity, ga_previous_id(_pi)=3577280722182120923, ga_screen_class(_sc)=MDActivity, ga_screen_id(_si)=3577280722182120783}] 2022-06-21 18:00:49.357 17457-17457/com.vinted.global.dev D/FirebasePerformance: Setting metric '_fr_tot' to '115' on trace '_st_ChallengeActivity' 2022-06-21 18:00:49.357 17457-17457/com.vinted.global.dev D/FirebasePerformance: Setting metric '_fr_slo' to '44' on trace '_st_ChallengeActivity' 2022-06-21 18:00:49.357 17457-17457/com.vinted.global.dev D/FirebasePerformance: Screen trace: _st_ChallengeActivity _fr_tot:115 _fr_slo:44 _fr_fzn:0 2022-06-21 18:00:49.364 17457-18593/com.vinted.global.dev I/FirebasePerformance: Logging trace metric: _st_ChallengeActivity (duration: 8925.635ms). In a minute, visit the Firebase console to view your data: https://console.firebase.google.com/project/vinted-1041/performance/app/android:com.vinted.global.dev/metrics/trace/SCREEN_TRACE/_st_ChallengeActivity?utm_source=perf-android-sdk&utm_medium=android-ide 2022-06-21 18:00:49.368 17457-17457/com.vinted.global.dev D/LeakCanary: Watching instance of com.adyen.threeds2.internal.ui.activity.ChallengeActivity (com.adyen.threeds2.internal.ui.activity.ChallengeActivity received Activity#onDestroy() callback) with key 2f446b31-6ad6-4fe7-9c23-a89f72b61360 2022-06-21 18:00:49.371 1522-7603/? W/InputManager-JNI: Input channel object '30c6cde com.vinted.global.dev/com.adyen.threeds2.internal.ui.activity.ChallengeActivity (client)' was disposed without first being removed with the input manager! 2022-06-21 18:00:49.381 1522-7603/? W/InputManager-JNI: Input channel object 'aadd503 com.vinted.global.dev/com.adyen.threeds2.internal.ui.activity.ChallengeActivity (client)' was disposed without first being removed with the input manager! aaa

jreij commented 2 years ago

Hi, sorry for the late reply. Are you still facing this issue? If so, are you using the checkout drop-in/components? Or the 3DS2 SDK directly? Can you share the versions you are using?

OscarSpruit commented 2 years ago

Closing this issue because it has been inactive for a while.

Please reopen if you still encounter this issue with the latest version.

Thank you!