Microsoft-authentication-library-for-dotnet: Unable to hide tool bar - Cancel & Done button for IOS and Sign In Title bar for Android

Created on 27 Aug 2020  路  29Comments  路  Source: AzureAD/microsoft-authentication-library-for-dotnet

Using .WithEmbeddedWebView does not allow to customize to hide the tool bar options - Cancel and Done button for IOS and Title Bar in Android.

Fixed enhancement Mobile-Android Mobile-iOS

Most helpful comment

@Coder-RKV this has been fixed and in release 4.18.

Thank you @jennyf19 . Implemented and working as expected!

All 29 comments

@iambmelt how do you guys handle this in native Android?

@Coder-RKV @jennyf19 If you'd like to hide the title bar on Android, you can apply a theme in your application's AndroidManifest.xml to the relevant Activity -- an example of how to apply a theme can be found here. Note you will need to apply a theme that does not display the title bar.

@iambmelt Thank you for your comment.
Applied a theme that doesn't display the title bar

MSALActivity.cs
[Activity(MainLauncher = false, Theme = "@style/MyTheme")]
[IntentFilter(new[] { Intent.ActionView },
Categories = new[] { Intent.CategoryBrowsable, Intent.CategoryDefault },
DataHost = "auth",
DataScheme = "msal[ClientId]")]
public class MsalActivity : BrowserTabActivity
{
}

styles.xml