AWS Amplify in iOS build cannot log in


I am trying to use OAuth (SignInWithApple & Google) via AWS Cognito (Appsync) in a Ionic Capacitor app with the AWS Amplify UI. This works fine if I build for webbrowser, but as soon as I build a iOS app, the process gets stuck when Amplify needs to accept the “?code=xxx” redirect. I see the redirect happening, but for some reason Amplify does not handle it. Is there anyone that knows how to handle this?

The app is build in vue3 with Ionic v6 & capacitor v4.