-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sign-in process not detecting Company Portal app on device for some users #1612
Comments
I referenced this issue in two issues I found filed in the MSAL library. The issues seem either similar or identical and could indicate an issue with Company Portal rather than either of these authentication libraries. |
@ghtaylor Thanks for reporting the issue, we are taking a look. Seems like it was working properly on 5.0.5155.0 and then started happening on 5.0.5164.0 so possibly a regression there. I will look at the delta between the two versions and then see what I can conclude from that. |
Can you provide an update to this issue? We are facing this issue on Android 11 devices. |
I managed to fix this issue last week. I hope this helps you and others. The issue affects both MSAL and ADAL and is related to changes to Package Visibility with Android 11. You must add the following code to your manifest file. I also found that I needed at least gradle plugin version 3.5.4; we were experiencing build errors with 3.5.3.
See the below links for extra information: https://stackoverflow.com/questions/62345805/namenotfoundexception-when-calling-getpackageinfo-on-android-11 |
@shahzaibj I was going to close this issue, but I actually think it's important this information is added to documentation wherever broker implementation is mentioned. It also applies to MSAL, not just ADAL. Could you please confirm that MS will update documentation? |
Expected behavior
After entering email and password, user is prompted with a page that asked user to 'Register your device to continue' with a button labeled 'Register'. The user taps this button and the device is registered in Intune and the app proceeds to launch successfully.
Actual behavior
After entering email and password, user is prompted with a page that says they do not have the Company Portal app even though they have it installed and set up, with a button labeled 'Get the app' which when tapped takes the user to the Company Portal app store page. In the 'More details' section of this page, the device is marked as 'unregistered'.
Steps to reproduce the problem
Specifications like the version of the library, operating system etc.
Environment
Users are using MAM-WE. When they install the Company Portal app they 'Postpone' the Work Profile installation, so they are using their personal device and profile.
ADAL version
1.16.3 (Meets minimum recommended version requirements)
Intune SDK version
Not sure how to determine as is an AAR file and a build.jar?
Tests with different users and different operating system versions
User 1 (WORKS)
Android version 9
Company Portal version 5.0.5164.0
User 2 (WORKS)
Android version 11
Company Portal version 5.0.5155.0
User 3 (WORKS)
Android version 11
Company Portal version 5.0.5155.0
User 4 (ISSUE OCCURS)
Android version 11, patch level 1 June 2021
Company Portal version 5.0.5164.0
User 5 (ISSUE OCCURS)
Android version 11
Company Portal version 5.0.5164.0
Relevant logs and traces
The text was updated successfully, but these errors were encountered: