popup_window_error: Error opening popup window in IOS

Piyumi Perera 121 Reputation points
2022-03-21T12:38:00.773+00:00

I am developing an add-in which use MSAL libraries for authentication process. when launching the addin in IOS and try to authorize I am getting following error.

popup_window_error: Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser. Details: BrowserAuthError: empty_window_error: window.open returned null or undefined window object.

185232-microsoftteams-image-4.png

Any solution for this?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,451 questions
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,656 Reputation points Microsoft Employee
    2022-03-28T18:30:40.547+00:00

    @Piyumi Perera
    Thank you for following up on this!

    From the documentation that you're following, the sample is working with a single-page application (SPA) and might require some additional steps to support iOS/macOS platforms. To make sure this issue is isolated to just your mobile device, you can try testing this app from Internet Explorer or another browser outside of your phone to see if you're running into this same issue.

    187651-image.png

    Additional Links:
    Tutorial: Sign in users and call Microsoft Graph from an iOS or macOS app
    Tutorial: Sign in users and call the Microsoft Graph API from an Android application

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.


0 additional answers

Sort by: Most helpful

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.