ms-intune-app-sdk-ios
ms-intune-app-sdk-ios copied to clipboard
Intune iOS RemediateCompliance Error
Describe the bug: Can't login further even after remediating Compliance and applying the policy
The Flow: When the App protection policy is enabled we get the following exception
later we need to call the remediateCompliance method as given in the documentation. Once done we get the following U.I
Then later after entering the PIN and try to login Again we are asked to signIn again in inTune SDK and we get stuck here
The logs Cleary states that we are blocked by the inTune SDK application
Expected behaviour: To login successfully after the Policy is applied and remediating Compliance is done
Video: https://figg-my.sharepoint.com/:v:/g/personal/arshad_nabi_meetingdecisions_com/EXUkF73oNetBhvIv3EoG5hQBIsECo9Z6WsBhxZ-Vk47XNg?e=OjPJcU
Smartphone (please complete the following information):
-
Device: Any iOS Device,
-
OS: iOS Version 13.0 and Higher
-
What version of the Intune SDK are you using? Are you using the latest version? Latest version
-
What platform is your app based in (native, Xamarin based, Cordova, etc)? Native
-
For errors during build, does the app build without Intune SDK integration? App builds without error
-
For errors post build, does the app launch without being Intune SDK integrated? NO
-
Do you see a trend with it only being reproduced on a specific device? NO
Info: We have authenticator app installed in the device and the device is registered in Azure AD as well.
@decisionslab2 What do you have in LSApplicationQueriesSchemes in your Info.plist?
yes @gastaffo. We do have LSApplicationQueriesSchemes in our info.plist
@decisionslab2 May I know which API are you calling for the following?
Then later after entering the PIN and try to login Again we are asked to signIn again in inTune SDK and we get stuck here
We are calling the MSAl login acquireToken function. MSALPublicClientApplication.acquireToken(with: parameters, completionBlock: completionBlock)
@decisionslab2 Could you please share the following, such that i can take a deeper look.
Do a repro, then
- Open Authenticator -> Hamburger menu on top left corner -> Send Feedback -> Having trouble? -> fill in any info needed -> Send -> give us the incident id
- Collect your app's MSAL logs (If you haven't setup the logging yet, see here for details)
The issue got resolved. The problem was with Delegated Permissions. once applied fresh it works fine. https://docs.microsoft.com/en-us/mem/intune/developer/app-sdk-get-started#give-your-app-access-to-the-intune-app-protection-service-optional