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

Activity that calls launcher.launch gets destroyed #1259

Open
klemzy opened this issue Jan 21, 2025 · 2 comments
Open

Activity that calls launcher.launch gets destroyed #1259

klemzy opened this issue Jan 21, 2025 · 2 comments

Comments

@klemzy
Copy link

klemzy commented Jan 21, 2025

Braintree SDK Version

5.3.0

Environment

Sandbox

Android Version & Device

Emulator Pixel 9 Pro API 35

Braintree dependencies

com.braintreepayments.api:paypal-native-checkout
com.braintreepayments.api:paypal-data-collector

Describe the bug

When starting PayPal flow via BrowserSwitch, our underlying activity gets destroyed (onDestroy). Activity has launch mode singleTask. Since our app is fully built in Compose, we lose the whole navigation stack because user lands on lock screen/start screen. Did someone stumbled on this? Any suggestions how to fix it/address it?

It happens only on emulator. Device seems ok.

To reproduce

  1. Launch PayPal flow and select account

Expected behavior

When starting PayPal flow, underlying activity should not get destroyed when returning from flow.

Screenshots

No response

@sarahkoop
Copy link
Contributor

Hi @klemzy - Can you confirm which libraries and versions you are using and experiencing this issue with? The paypal-native-checkout module was removed and is not available in version 5

@klemzy
Copy link
Author

klemzy commented Jan 27, 2025

Sorry we are using com.braintreepayments.api:paypal and com.braintreepayments.api:data-collector. LIbrary version is 5.3.0.

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

No branches or pull requests

2 participants