Skip to content

Commit 0e70a42

Browse files
authored
Merge pull request #98772 from Phenek/patch-2
Android 12 Activity must specify android:exported
2 parents 12d3edc + c12d3b1 commit 0e70a42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/active-directory/develop/msal-net-xamarin-android-considerations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected override void OnActivityResult(int requestCode,
7575
To support System WebView, the *AndroidManifest.xml* file should contain the following values:
7676

7777
```xml
78-
<activity android:name="microsoft.identity.client.BrowserTabActivity" android:configChanges="orientation|screenSize">
78+
<activity android:name="microsoft.identity.client.BrowserTabActivity" android:configChanges="orientation|screenSize" android:exported="true">
7979
<intent-filter>
8080
<action android:name="android.intent.action.VIEW" />
8181
<category android:name="android.intent.category.DEFAULT" />
@@ -96,7 +96,7 @@ Alternatively, [create the activity in code](/xamarin/android/platform/android-m
9696
Here's an example of a class that represents the values of the XML file:
9797

9898
```csharp
99-
[Activity]
99+
[Activity(Exported = true)]
100100
[IntentFilter(new[] { Intent.ActionView },
101101
Categories = new[] { Intent.CategoryBrowsable, Intent.CategoryDefault },
102102
DataHost = "auth",

0 commit comments

Comments
 (0)