-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update docs about Android 11 support #2139
Comments
I tried to implement "Fix 2" but the app still launches the browser instead of a custom tab. |
Problem is still present with v2.25.0 - cannot use Custom Tabs with Android 29+ - the login flow always opens the browser. Lines 37 to 45 in d451b16
The comment itself says that "Must use the classic support" but for Android 29+ the wrong(?) Intent Action is used. I think it should be android.support.customtabs... and not androidx.browser.customtabs...
|
@henrik-me @trwalke @bgavrilMS @jennyf19 |
Regarding proposed "Fix 1" there has been some talk here about how it would be possible to include the extra stuff to the AndroidManifest.xml: xamarin/Essentials#1392 (comment) |
I still have to use v4.23 on Android because of this issue. Any chance it will be fixed in the next update? |
@trwalke - can you take a look at this for the next MSAL release? We should not block people on older SDK versions. Also good to better understand differences between Android 10 and 11. |
Looks like 2 issues are present here, @trwalke - please split it up if needed. |
@trwalke - given that we need big manifest changes, I wonder if it won't be faster to add the manifest.xml directly to MSAL, similar to what MSAL.Android do ? This would avoid us having to change all the samples, wiki and MSDN? |
@bgavrilMS in my previous attempt I could not get the manifest to work when it was attached to MSAL. it is easier for android as they have a project designed to accept manifest files. I will take another look at it to see if i can get it to work but I may have to reach out to the Xamarin guys |
Cannot merge PR until next week due to restrictions in MS Docs. Blocking until then |
This is still not working for me after 4.28, even if it says so in the changelog. |
CC @trwalke |
Information on how to implement Android 11 support can be found here: |
What exactly does "Android 11 support" mean?
But why? |
@trwalke - not having system browser support on Android 11 is pretty big gap that needs to be addressed, and we should mention it in the docs. |
Android 11 impact
• Unable to query package manager for and launch browsers that support custom tabs
• Unable to query package manager for and launch regular browsers that don’t support custom tabs
• Unable to query package manager for Broker apps installed on the device (We could still see the Authenticators on the device but when trying to query them via Package Manager it would not be found)
It is important to note that these issues are only observed when the app is targeting SDK 30 & running on Android 11 device
Fix 1
According to Android team, a library can have its own manifest. As far as I know, MSAL.NET does not use this mechanism. To mitigate Android 11 impact, we can update our own manifest, similar to:
https://github.com/AzureAD/microsoft-authentication-library-common-for-android/pull/1095/files
This still requires customers to update to the latest version of MSAL.
Fix 2
Update our docs with app manifest requirements as per:
https://github.com/AzureAD/microsoft-authentication-library-common-for-android/pull/1095/files
The text was updated successfully, but these errors were encountered: