MSIntue SDK iOS app not redirecting after login and enrollment

Parveen 96 Reputation points
2021-02-19T04:26:19.24+00:00

Hi,

I followed steps here https://learn.microsoft.com/en-us/mem/intune/developer/app-sdk-ios to integrate MSIntune iOS SDK with iOS app. From the logs login and enrollment using below code is successfull:
"IntuneMAMEnrollmentManager.instance().loginAndEnrollAccount(nil)"

Screen with "Checking your organization's data access requirements for this app" is shown. Seems app is not being redirected correctly.

What can be the possible issue ?

Thanks.

Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,280 questions
{count} votes

Accepted answer
  1. Parveen 96 Reputation points
    2021-02-22T21:42:12.71+00:00

    I was able to resolve that. The problem was after login success, when IntuneMAMPolicyDelegate delegate method addIdentity was being invoked. And it is mandatory to call the completionHandler as below.

    func addIdentity(_ identity: String, completionHandler: @escaping (IntuneMAMAddIdentityResult) -> Void) {
    completionHandler(.success)
    }


0 additional answers

Sort by: Most helpful