You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 15, 2024. It is now read-only.
When calling WebAuthenticator.AuthenticateAsync( ) with certain URIs the following exception is being thrown using Xamarin.Essentials.1.5.3.2 on iOS:
{System.Exception: Could not initialize an instance of the type 'Foundation.NSUrl': the native 'initWithString:' method returned nil.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
at Foundation.NSObject.InitializeHandle (System.IntPtr handle, System.String initSelector) [0x000a8] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.18.2.1/src/Xamarin.iOS/Foundation/NSObject2.cs:504
at Foundation.NSUrl..ctor (System.String urlString) [0x00028] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.18.2.1/src/Xamarin.iOS/NSUrl.g.cs:141
at Xamarin.Essentials.WebAuthenticator.PlatformAuthenticateAsync (System.Uri url, System.Uri callbackUrl) [0x00113] in d:\a\1\s\Xamarin.Essentials\WebAuthenticator\WebAuthenticator.ios.tvos.cs:62
at Xamarin.Essentials.WebAuthenticator.PlatformAuthenticateAsync (System.Uri url, System.Uri callbackUrl) [0x003fc] in d:\a\1\s\Xamarin.Essentials\WebAuthenticator\WebAuthenticator.ios.tvos.cs:115
at ... }
Description
When calling WebAuthenticator.AuthenticateAsync( ) with certain URIs the following exception is being thrown using Xamarin.Essentials.1.5.3.2 on iOS:
This same bug seems to have been fixed for Essentials Launcher: c32839b#commitcomment-39817362
Steps to Reproduce
(Auth URL slightly obfuscated here)
Expected Behavior
Call succeeds and the device's browser is launched.
Actual Behavior
System.Exception is thrown.
Basic Information