braintree / braintree_ios

Braintree SDK for iOS
https://developer.paypal.com/braintree/docs/start/hello-client/ios/v5
MIT License
557 stars 293 forks source link

Universal Links Demo #1205

Closed jaxdesmarais closed 6 months ago

jaxdesmarais commented 6 months ago

Summary of changes

Demo

Simulator Screen Recording - iPhone 15 - 2024-03-05 at 09 05 53

Notes

Checklist

Authors

scannillo commented 6 months ago

When switching back to the Demo app, neither UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:) nor UISceneDelegate.scene(_:openURLContexts:) gets triggered. This is a problem since our SDK will need to receive the returnURL from the universal link switch into the Demo app.

Maybe there's an additional piece we need to configure 🤔

scannillo commented 6 months ago

Non-blocking ❓, but I'm curious what App/SceneDelegate method gets invoked if the merchant app is in the "not running" state - for example if a user kills the merchant app after they've switched to PayPal

jaxdesmarais commented 6 months ago

Non-blocking ❓, but I'm curious what App/SceneDelegate method gets invoked if the merchant app is in the "not running" state - for example if a user kills the merchant app after they've switched to PayPal

That's a great question, I just tested this with the Venmo flow and it looks like applicationWillTerminate is called if I kill the BT Demo in the middle of the Venmo flow.