question

Parveen-4265 avatar image
0 Votes"
Parveen-4265 asked Crystal-MSFT commented

MSIntue SDK iOS app not redirecting after login and enrollment

Hi,

I followed steps here https://docs.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.

mem-intune-enrollment
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Parveen-4265 , Research but not find any document record this. maybe you can open an Intune support case to see if we can get more help:
https://docs.microsoft.com/en-us/mem/get-support

1 Vote 1 ·

1 Answer

Parveen-4265 avatar image
0 Votes"
Parveen-4265 answered Crystal-MSFT commented

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)
}





· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Parveen-4265 , Thanks for the reply. I am glad to hear that it is fixed. Congratulations! And thanks for sharing the analysis here. It can help others who has the same issue here. I appreciate it.

Again thanks for your time and have a nice day!

0 Votes 0 ·