Which Version of MSAL are you using ?
MSAL 4.8.1
Platform
Xamarin.Forms (iOS)
What authentication flow has the issue?
Mobile Interactive
Repro
Run 4.8.1 with AcquireTokenInteractive on iOS 10 and it will crash (4.7.1 will work).
Expected behavior
Login view should appear.
Actual behavior
App crashes with the following message:
Foundation.MonoTouchException
Message=Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[WKWebViewConfiguration defaultWebpagePreferences]: unrecognized selector sent to instance 0x1703a1340
Possible Solution
Not solution, but possible cause: 'defaultWebpagePreferences' was introduced in iOS 13 and therefore isn't available on ios 10. You can find reference to 'defaultWebpagePreferences' from this recent commit: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/commit/b3e43976bd2f0a0d370b3315c5454ce3f4093d8d#diff-c49dff8cf6a7d53678d8a220af373ba1
Fix that and I reckon the problem should be gone.
@steffos : Are you saying any interactive request is failing? Can you pls. provide repro steps?
What I missed mentioning in description above is that this is related to the embedded web view option.
Retro steps:
@steffos Fix is in master now.
@steffos Released in 4.8.2
Most helpful comment
What I missed mentioning in description above is that this is related to the embedded web view option.
Retro steps: