Flutter no OAuth result from Magic Link only on iOS
I am using magic_sdk: ^0.3.1
and magic_ext_oauth: ^0.1.0
in flutter to implement a login.
This is the code I am using
try{
Magic magic = Magic.instance;
if (loginType == OAuthProvider.GOOGLE) {
Logger().w('logging with google'); //working
var configuration = OAuthConfiguration(
provider: OAuthProvider.GOOGLE,
redirectURI: 'magicauthentication://');
Logger().w('logging configuration added'); //working
var result = await magic.oauth.loginWithPopup(configuration);
Logger().w('popup passed'); //not working
Logger().w(result.magic!.toJson());
var token = result.magic!.idToken;
exchangeToken(context, token);
}
} catch (e) {
Logger().e(e); //not working
}
This code works fine without any bugs on Android. On iOS it does not. I added loggers to check the executing lines. There are marked in the above code as working and not working.
Since I had to add android schemas
to work on Android I also added applinks
on iOS
What can be the problem here why it is not giving result only on iOS ?
Is there anything more that I need to add?
as it is clear from the score section of it, it doesn't support multiple platforms, try the recent one.