iOS 18 blank sign in screen
Trying to sign in on iOS 18 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 with the Authenticator app installed (haven't tried without it), but it's an issue during development since we can't sign in into the app.
Could you share the xcode version that you are using ? is it iOS18 beta simulator ?
Even i am getting the same error. A blank screen while loading simulators running with iOS 18.0. Where as it is working in all previous simulators less than iOS 18. Xcode version is Version 16.0 (16A242d). Is there any solution or workaround for the same?
Hi , I tested on xcode 16.1 beta 2 /xcode 16.0 and simulators 18 and 18.1 , but couldnt repro the issue
I have resolved the issue by setting the webviewtype to wkwebview. iOS 18 might have introduced changes in SafariViewController or its handling in MSAL, which could have led to the issues with presenting the login page. WKWebView ensures more consistent behavior, so by changing to wkwebview resolved.
Let it be useful to whoever coming to this thread.
MSALWebviewParameters *webParameters = [[MSALWebviewParameters alloc] initWithAuthPresentationViewController:vc];
webParameters.webviewType = MSALWebviewTypeWKWebView;
Thanks @sabrahamsmartv , this works, but I'm not sure this is a long-term solution. As far as I recall, MSALWebviewTypeWKWebView doesn't support passwords fill-in.
@Veena11, when I create a new app and try to reproduce it, it works perfectly fine. I don't think the issue is specifically with MSAL, because I see the same problem when trying to open any link now. But only in our existing app. I can't figure out exactly what's causing it.
@lukaszciastko-spica , is this issue resolved for you now ? Can we close the ticket ?
@lukaszciastko-spica , is this issue resolved for you now ? Can we close the ticket ?
No, we still have the issue and no solution.
@lukaszciastko-spica did you solve the issue?
This doesn't seem to be an MSAL issue and maybe an iOS issue. Please reach out to Apple via Dev Forums/Feedback. Closing this
Trying to sign in on iOS 18.2 in the Simulator (using the browser view), all I can see is a blank screen. and it's working fine on the real device.