-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS 18.2 blank sign in screen #2486
Comments
@diwakar445 You can avoid this behavior modifying the webViewType in the webViewParameters as MSALWebviewType.wkWebView
|
@mandariino / @Veena11 , I'm hitting the same thing but from my React-Native app that uses MSAL through objective-c: https://github.com/stashenergy/react-native-msal/blob/master/ios/RNMSAL.m Unfortunatley, the workaround to specify MSALWebViewType.wkWebView didn't work for me. If I understood correctly, this is the relevant code: RCT_REMAP_METHOD(acquireToken,
interactiveParams:(NSDictionary*)params
resolver:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)
{
...
// Configure interactive token parameters
UIViewController *viewController = [UIViewController currentViewController];
MSALWebviewParameters *webParameters = [[MSALWebviewParameters alloc] initWithAuthPresentationViewController:viewController];
webParameters.webviewType = webviewType;
webParameters.presentationStyle = presentationStyle;
if (@available(iOS 13.0, *)) {
webParameters.prefersEphemeralWebBrowserSession = prefersEphemeralWebBrowserSession;
}
... What's the nature of how / why specifying wkWebView workaround this? After explicitly specifying it, it didn't work for me. I tried using different presetantationStyle as well, i.e. automatic, pageSheet, currentContext, overFullScreen but it didn't seem to help. The call to Any other thoughts or suggestions? |
I was having the same issue in the simulator and the suggestion from @mandariino fixed it for me. |
Trying to sign in on iOS 18.2 in the Simulator (using the browser view), all I can see is a blank screen. Tested a few versions of MSAL up to 1.5.1. This works on a real device but it's an issue during development since we can't sign in into the app.
The text was updated successfully, but these errors were encountered: