intune-app-sdk-xamarin icon indicating copy to clipboard operation
intune-app-sdk-xamarin copied to clipboard

Help troubleshooting MAMEnrollmentStatusInternalError

Open miguelweiss opened this issue 2 years ago • 6 comments

The issue is related with the registering and enrolling an account process with an iOS application.

We are working on an iOS Xamarin based application for iOS 15 iPhone, Building with Xcode 12.5.1, using MSAL authentication and using the Microsoft.Intune.MAM.Xamarin.iOS 15.0.0 Nuget package.

When we call the IntuneMAMEnrollmentManager.Instance.RegisterAndEnrollAccount(string identity) for registering an account, then in the public virtual void EnrollmentRequestWithStatus (IntuneMAMEnrollmentStatus status) method we are capturing an IntuneMAMEnrollmentStatus object with the error message = There was an internal error in the Intune MAM SDK. Please see the NSError object for more details., a NSError = null and a StatusCode = MAMEnrollmentStatusInternalError. Check the below image for details: image

In the Entitlements.plist file we have the following: image

The interesting thing is that we do not get an error message and are able to register and enroll the user account when we use the Microsoft.Intune.MAM.Xamarin.iOS 14.3.5 Nuget package.

Any idea how we can troubleshoot this issue or have any clue on what is the problem?

Thank you very much.

miguelweiss avatar Sep 23 '21 17:09 miguelweiss