I'm trying to redirect from BankId app to my Flutter app after the user enters the security code.
It's working fine in Android but in iOS when I set URL redirect to my custom URL scheme, it doesn't return back to the app automatically.
if (Platform.isIOS) {
const redirect = "rememberapp://";
url = "https://app.bankid.com/?autostarttoken=[$autoToken]&redirect=$redirect";
if (await canLaunch(url)) {
await launch(url, forceSafariVC: false);
} else {
throw 'Could not launch $url';
}}
When I add the URL scheme in safari, it opens up the app but it's not working when I try to redirect from another app.