ms-intune-app-sdk-ios
ms-intune-app-sdk-ios copied to clipboard
enrollmentRequest delegate method of IntuneMAMEnrollmentDelegate not called
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
Hello, I'm facing the same issue.
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.
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 afterenrollmentManager.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
Any update on this? Seeing the same issue over here as well.
Closing stale issues. Please reopen if you still need help with this.