azureb2c is not working on android emulator

Juan Rivero 20 Reputation points
2023-05-04T12:36:14.56+00:00

azureb2c is not working on android emulator but is working on windows Machine. When I run the android emulator and the maui blazor app is running on the Android emulator, I click on login and it looks like it will connect to the azureb2c url and display the login page, but I only see a blank page. I copy and paste the azureb2c url on my laptop browser and it shows the login page, but not on the android emulator.

Microsoft Security Microsoft Entra Microsoft Entra External ID
{count} votes

1 answer

Sort by: Most helpful
  1. Akshay-MSFT 17,951 Reputation points Microsoft Employee Moderator
    2023-05-09T06:24:49.78+00:00

    @Juan Rivero

    Thank you for posting your query on Microsoft Q&A, from above description I could understand that your application sign in is not working for Azure B2C on Android emulator.

    Please do correct me if this not the issue.

    To start with Kindly validate the AndroidManifest.xml and add BrowserTabActivity activity to the application body:

    <!--Intent filter to capture System Browser or Authenticator calling back to our app after sign-in--> <activity
        android:name="com.microsoft.identity.client.BrowserTabActivity"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="msauth"
                android:host="Package_Name"
                android:path="/Signature_Hash" /> </intent-filter> </activity>
    

    Please do let me know by responding in the comments section if the issue persist.

    Thanks,

    Akshay Kaushik

    Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.


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.