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

6.26.0 Marks returnURLScheme deprecated but is still required by Venmo #1505

Open
brodney opened this issue Jan 23, 2025 · 1 comment
Open

Comments

@brodney
Copy link

brodney commented Jan 23, 2025

Braintree SDK Version

6.26.0

Environment

Both

Xcode Version

Xcode 16.2

OS Version & Device

No response

Integration type

Prebuilt Binaries / Other

Development Processor

Apple Silicon (M-series chips)

Describe the bug

While upgrading from 6.23.4 to 6.26.0 I saw that BTAppContextSwitcher.returnURLScheme is deprecated. I attempted to use BTVenmoClient.init(apiClient:, universalLink: URL) however I am getting the following error.

[BraintreeSDK] CRITICAL Venmo requires a return URL scheme to be configured via [BTAppContextSwitcher setReturnURLScheme:]

To reproduce

  1. Initialize a BTVenmoClient without previously setting returnURLScheme.
  2. Call BTVenmoClient.tokenize.
  3. Observe Error

Expected behavior

If returnURLScheme is deprecated then universalLink should be a functioning alternative. Projects that treat warnings as errors cannot move forward with 6.26.0 as is. Alternatively, removing the deprecation warning temporarily until universalLink is implemented will resolve it.

Screenshots

No response

@jaxdesmarais
Copy link
Contributor

Hello @brodney -

Thanks for bringing this to our attention. We currently have PR #1503 up to resolve this issue. I will update you here once that PR has been merged and released.

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