diff --git a/Sample/Auth0MauiApp/Platforms/Android/MainActivity.cs b/Sample/Auth0MauiApp/Platforms/Android/MainActivity.cs index ada8ebb..6441fdd 100644 --- a/Sample/Auth0MauiApp/Platforms/Android/MainActivity.cs +++ b/Sample/Auth0MauiApp/Platforms/Android/MainActivity.cs @@ -1,6 +1,5 @@ using Android.App; using Android.Content.PM; -using Android.OS; namespace Auth0MauiApp { diff --git a/Sample/Auth0MauiApp/Platforms/Android/WebAuthenticatorActivity.cs b/Sample/Auth0MauiApp/Platforms/Android/WebAuthenticatorActivity.cs new file mode 100644 index 0000000..7347039 --- /dev/null +++ b/Sample/Auth0MauiApp/Platforms/Android/WebAuthenticatorActivity.cs @@ -0,0 +1,16 @@ +using Android.App; +using Android.Content.PM; +using Android.Content; + +namespace Auth0MauiApp +{ + [Activity(NoHistory = true, LaunchMode = LaunchMode.SingleTop, Exported = true)] + [IntentFilter(new[] { Intent.ActionView }, + Categories = new[] { Intent.CategoryDefault, Intent.CategoryBrowsable }, + DataScheme = CALLBACK_SCHEME)] + public class WebAuthenticatorActivity : Microsoft.Maui.Authentication.WebAuthenticatorCallbackActivity + { + const string CALLBACK_SCHEME = "myapp"; + } + +} \ No newline at end of file