Closed kpoelhekke closed 1 month ago
Hey @kpoelhekke
Thank for feedback.
We haven't check our plugin compatibility with expo-router
yet.
It should just continue delegating the url to the application itself whenever ADYRedirectComponent cannot handle it
Correct. Best strategy would be to chain them:
return [ADYRedirectComponent applicationDidOpenURL:url] || {All other redirects};
However default code [super application:application continueUserActivity:userActivity restorationHandler:restorationHandler]
takes all parameters and makes thing bit more complicated.
You can try following to avoid unexpected side-effects:
' if (![url isEqual:[NSNull null]] && [ADYRedirectComponent applicationDidOpenURL:url]) {\n' +
' return YES;\n' +
' }\n' +
PR #455
Thanks for the quick action! I've implemented the change and can confirm it works as expected!
Released on v2.0.0
Thanks @kpoelhekke 💚 I am going to close this ticket
Describe the bug Whenever you use the Expo plugin to generate iOS native code the universial links to our application stop working whenever the app is open. When the app is hard closed the universal links work as expected.
We use links like: https://example.com/screen2
It seems like the codemod to change the
continueUserActivity
delegating the link to theADYRedirectComponent
which cannot handle it and then it stops.To Reproduce Steps to reproduce the behavior:
expo-router
ios.associatedDomains
inapp.config.ts
Expected behavior It should just continue delegating the url to the application itself whenever
ADYRedirectComponent
cannot handle itAdditional context We've managed to bypass it by patching the plugin, but I'm not really sure if this can give unintended behavior for Adyen specific links and if this is the cleanest way to implement it: