MSAL login Build method causing infinite wait time in Xamarin.iOS project

Published

I am having a Xamarin Forms application that uses a Microsoft AD login, but when I try to fetch the accounts details it is causing an infinite wait loop for getting the PublicClientApplication.Build().
The issue is happening with the creation of IPublicClientApplication object.

        private IPublicClientApplication _app;
        private IPublicClientApplication App
        {
            get
            {
                return _app ?? (_app = PublicClientApplicationBuilder.Create(ClientId)
                    .WithAuthority(Authority)
                    .WithRedirectUri(ReturnUri)
                    .WithParentActivityOrWindow(ActivityOrWindowFunc)
                    .WithIosKeychainSecurityGroup(companyname)
                    .Build()); // This call causing the issue
            }
        }

Here when I call the build method causing infinite waiting time and I am unable to access my application because I am opening the view based on the response of this App variable(This will fetch accounts in cache and open login page or next page).

I am receiving this message "AppName.iOS[14844:1920113] Unbalanced calls to begin/end appearance transitions for <UIViewController: 0x7ff783732f60>." and it will wait for a long time.

Anyone, please help me for solving this issue.

Source: Xamarin.ios Questions

Published
Categorised as Uncategorised Tagged , , , ,

Answers

Leave a Reply

Your email address will not be published. Required fields are marked *

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq