Xamarin.Android specific: Error Code 53000, but device is compliant.

MVS 21 Reputation points
2022-03-29T18:28:51.943+00:00

Prerequisites:
Android phone with V12
Setup Microsoft Intune company portal
Register your device with InTune successfully
Microsoft credentials or account to log in

Expected Result: I want a user to log in with a Microsoft account and fetch a user token, given that I have access to login with a Microsoft account when Intunes is configured on Android Phone.

Actual Result: The login is successful with a domain account if not enrolled in https://endpoint.microsoft.com/#home. When the user uses the registered domain, the mobile application takes the user to the "set up your device to get access" page and it asks to register in the InTune application even though the specific device is registered.

Below is the Error details
Error Code: 530003
Request Id: 1bc3c...70500
Correlation Id: 333...1a1b2
Timestamp: 2022-03-28T23:06:42.840Z
App name: XXXXXX
App id: 708c...87c0
Device identifier: Not available
Device platform: Android
Device state: Unregistered

NOTE:

  1. Followed this tutorial here - https://github.com/Azure-Samples/active-directory-xamarin-native-v2 (used this one, "1-Basic")
  2. I have also tried the second approach (2-With-broker) in the above link but no results, the Android specif issue still exists as I was a bit unsure which I use to pick as per my requirement.
    Can someone suggest the right pick?
  3. iPhone has no issues logging in when I use ".WithUseEmbeddedWebView(false)". With this set to true, iPhone has the issue like in Android. However, this making it false or true didn't work out for Android.

Overall, it is said to be worked when Admin can see the device ID under Device info in the https://endpoint.microsoft.com/#home

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,349 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,060 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,726 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.