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

Appverifier: Fix NFC engagement problem on first run after install. #857

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

koukarine
Copy link
Contributor

@koukarine koukarine commented Jan 29, 2025

This change addresses an NFC engagement issue that could occur on the first run of AppVerifier after installation. The root cause was an incorrect handling of the Android activity lifecycle events that occur when the permission-requesting activity returns to the main application activity or fragment. The fix ensures that the VerificationHelper instance is initialized during the ON_RESUME lifecycle event, rather than ON_START, to avoid race conditions and ensure proper setup.

Tested manually. Tap each with the phone running Wallet.

  • Tests pass

@koukarine koukarine requested review from kdeus and davidz25 January 29, 2025 17:43
This change addresses an NFC engagement issue that could occur on the first run of AppVerifier after installation. The root cause was an incorrect handling of the Android activity lifecycle events that occur when the permission-requesting activity returns to the main application activity or fragment. The fix ensures that the VerificationHelper instance is initialized during the ON_RESUME lifecycle event, rather than ON_START, to avoid race conditions and ensure proper setup.

Tested manually. Tap with the phone running Wallet.

Signed-off-by: koukarine <[email protected]>
@koukarine koukarine changed the title Fix transfer manager initialization causing app lock up on NFC tap. Appverifier: Fix NFC engagement problem on first run after install. Jan 30, 2025
Copy link
Contributor

@davidz25 davidz25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot!

@davidz25 davidz25 merged commit 9d361aa into openwallet-foundation-labs:main Jan 30, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants