Skip to content
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

Open
diwakar445 opened this issue Jan 16, 2025 · 4 comments
Open

iOS 18.2 blank sign in screen #2486

diwakar445 opened this issue Jan 16, 2025 · 4 comments
Assignees

Comments

@diwakar445
Copy link

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.

Image
@Veena11 Veena11 self-assigned this Jan 16, 2025
@Veena11
Copy link
Contributor

Veena11 commented Jan 16, 2025

@diwakar445 ,

I am unable to repro this issue locally

Image

I tested on macOS 15.2 / xcode 16.2/ MSAL 1.6.2

@mandariino
Copy link

mandariino commented Feb 9, 2025

@diwakar445 You can avoid this behavior modifying the webViewType in the webViewParameters as MSALWebviewType.wkWebView

webViewParamaters?.webviewType = MSALWebviewType.wkWebView

@hendryems
Copy link

@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 acquireTokenWithParameters simply didn't return and I don't seem to get any browser UX either...

Image

Any other thoughts or suggestions?

@xremix
Copy link

xremix commented Mar 14, 2025

I was having the same issue in the simulator and the suggestion from @mandariino fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants