ms-intune-app-sdk-ios icon indicating copy to clipboard operation
ms-intune-app-sdk-ios copied to clipboard

enrollmentRequest delegate method of IntuneMAMEnrollmentDelegate not called

Open parveen-bhatia opened this issue 3 years ago • 3 comments

Describe the bug: I set up delegate methods for both enrollment and policy like IntuneMAMPolicyManager.instance().delegate = self IntuneMAMEnrollmentManager.instance().delegate = self

Delegate method enrollmentRequest(with status: IntuneMAMEnrollmentStatus) is being called after enrollmentManager.registerAndEnrollAccount(upn) only when there are intune policies available for the user.

However when there are no intune policies available for the user then this delegate method is not being called. Due to this behavior there is no call back, letting application know whether intune enrollment is successful or failure.

Versions: SDK: 14.1.1 iOS: 14.x MSAL: 1.1

parveen-bhatia avatar Jun 21 '21 20:06 parveen-bhatia

Hello, I'm facing the same issue.

NicolasLourenco avatar Jun 29 '21 09:06 NicolasLourenco

We are using this workaround to fix this. Every time user launch the app if user is not enrolled, then call deRegisterAndUnenrollAccount. In the delegate callback unenrollRequest(with status:, call registerAndEnrollAccount or loginAndEnrollAccount. Doing so delegate methods are being called every time even when there are no intune policies applied.

parveen-bhatia avatar Aug 24 '21 16:08 parveen-bhatia

Describe the bug: I set up delegate methods for both enrollment and policy like IntuneMAMPolicyManager.instance().delegate = self IntuneMAMEnrollmentManager.instance().delegate = self

Delegate method enrollmentRequest(with status: IntuneMAMEnrollmentStatus) is being called after enrollmentManager.registerAndEnrollAccount(upn) only when there are intune policies available for the user.

However when there are no intune policies available for the user then this delegate method is not being called. Due to this behavior there is no call back, letting application know whether intune enrollment is successful or failure.

Versions: SDK: 14.1.1 iOS: 14.x MSAL: 1.1

I am also facing same issue any one can help as

ensprit avatar Apr 05 '22 18:04 ensprit

Any update on this? Seeing the same issue over here as well.

nidhi-hearsay avatar Mar 16 '23 20:03 nidhi-hearsay

Closing stale issues. Please reopen if you still need help with this.

ShruthiAchutha avatar Feb 23 '24 16:02 ShruthiAchutha