How to avoid redirection of login page in IOS application created via capacitor

Jatin Dave 0 Reputation points
2025-04-14T04:45:41.9566667+00:00

We have used Microsoft Azure ADB2C integrated in an Angular web app. Now we have converted it into a PWA app. With the help of the Capacitor library, we have converted it into an iOS application. But when we try to run a web app in iOS, the login redirects to the browser instead within the standalone iOS application.

We have tried different login pages created within the application, which redirects correctly with in application.

We also have verified AASA (apple-app-site-association) which registered our domain.

Can you help/guide us to diagnose this further because without ADB2C authentication, the app works fine in iOS.

We have implemented a login form using the MSAL library in the Angular application.

Azure AD B2C has a custom policy.

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
3,142 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kancharla Saiteja 3,480 Reputation points Microsoft External Staff
    2025-04-15T18:05:45.9966667+00:00

    Hi @Jatin Dave,

    Based on your query, here is my understanding: You would like to have login page on screen of the app instead of redirecting to the browser.

    Azure AD B2C supports system default browser and embedded view of the login page. System browser could be used and recommended if you would like to remember the username of the users who have logged in before.

    Note: Some identity providers, such as Google, don't support an embedded view experience.

    Please go through the following document in order to use embedded view: Embedded web view experience.

    I hope this information is helpful. Please feel free to reach out if you have any further questions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.