I created app, which Authenticate using Azure AD
In Android it is working fine, but in iOS, it need RootViewController
for load the page. But UIApplication.SharedApplication.KeyWindow
is null. So I am not able to get UIApplication.SharedApplication.KeyWindow.RootViewController
Bellow is the code:
var authResult = await authContext.AcquireTokenAsync(
graphResourceUri,
ApplicationID,
new Uri(returnUri),
new PlatformParameters(UIApplication.SharedApplication.KeyWindow.RootViewController)
);
Any other way from which I can get RootViewController