xamarin-docs icon indicating copy to clipboard operation
xamarin-docs copied to clipboard

Setup guide leads to application crashing with you_should_not_call_base_in_this_method exception.

Open ghasszak opened this issue 2 years ago • 0 comments

[Enter feedback here]

Hello,

I've experienced several crashes on my Xamarin Application, due to this code snippet public override bool OpenUrl(UIApplication app, NSUrl url, NSDictionary options)

{
    if (Xamarin.Essentials.Platform.OpenUrl(app, url, options))
        return true;

    return base.OpenUrl(app, url, options);
}

Indeed, UIApplicationDelegate.OpenUrl(app, url, options) throws a you_should_not_call_base_in_this_method exception.

I'm on Xamarin Essentials 1.6 and SDK 13.4

I think the docs need to be updated to adress this issue

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ghasszak avatar Nov 02 '21 07:11 ghasszak