ms-intune-app-sdk-ios
ms-intune-app-sdk-ios copied to clipboard
Getting IntuneMAMEnrollmentStatusLocationServiceFailure error alert for users
Describe the bug: Users are getting alert for IntuneMAMEnrollmentStatusLocationServiceFailure.
To Reproduce Steps to reproduce the behavior:
- User logs into Intune
- and sees an alert
Expected behavior: User should be able to login ang get policies
Screenshots and logs:
Smartphone (please complete the following information):
- Device: iPhone
- OS: iOS 17+
Intune App SDK for iOS (please complete the following information):
-
What version of the Intune SDK are you using? Are you using the latest version? - 19.0.1
-
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? - NO
-
For errors post build, does the app launch without being Intune SDK integrated? - Yes
-
Who is the customer? - Some clients using Intune, have MAM policies applied to users
-
Do you see a trend with it only being reproduced on a specific device? - No
Additional context: NA
Hi @heena-dhawan-eptura Please ensure that you are using the latest version of the SDK and please gather verbose logs and app logs for a device that is failing and confirm if any conflicting policy is being applied for the user.
Recommend: Intune Update SDK version to Latest version
Ref:
https://learn.microsoft.com/en-us/mem/intune/apps/manage-microsoft-edge#use-microsoft-edge-for-ios-and-android-to-access-managed-app-logs https://learn.microsoft.com/en-us/mem/intune/user-help/send-logs-to-microsoft-ios#share-diagnostic-logs https://learn.microsoft.com/en-us/mem/intune/user-help/retrieve-ios-app-logs
i am also facing same issue ...... IntuneMAMEnrollmentStatusCode(rawValue: 204) The Intune MAM SDK failed to connect to the location service to determine the user's endpoint, see error object for details. @ChismanRaheem can you please help
HI @gouravkumar1207 Please let me know the enrollment method that is being used and provide the steps that you are using to reproduce the issue. Also since you're able to reproduce the issue on demand please invoke the intunMAMdiagnosticConsole.display() and provide the diagnostic logs or reference ID which can be sent securely to me at [email protected]
let enrollmentDelegate = EnrollmentDelegateClass() IntuneMAMEnrollmentManager.instance().delegate = enrollmentDelegate IntuneMAMEnrollmentManager.instance().loginAndEnrollAccount("useridentity")
also added my bundle Id com.microsoft.intune.mam com.microsoft.adalcache
also well configured
Info.plist
<string>MSNLprojectTest-intunemam</string>
<string>msauth.com.microsoft.intunemam</string>
</array>
and error is IntuneMAMEnrollmentStatusLocationServiceFailure = 204
when first time i logged in it also warn please see attached screen shot
Hi @gouravkumar1207 I was not able to reproduce the issue, l recommend that you ensure that App protection policy is configured to accept your custom app/project, also make sure that your info.plist and entilement is correctly configured you can use the IntuneMAMConfigurator tool that is included in the SDK repo to finish configuring your app's Info.plist.
I also recommend you take a look at our sample code https://github.com/microsoftconnect/Chatr-Sample-Intune-iOS-App which uses the same method to enroll a user and see if you experience the same issue.
If you still experience issues with the sample, please provide the diagnostic logs so that I can better assist.
@ChismanRaheem IntuneMAMConfigurator showing success i have not set any policy yet i just want to test basic authentication part i printed error logs which shows
The Intune MAM SDK failed to connect to the location service to determine the user's endpoint, see error object for details. status code IntuneMAMEnrollmentStatusCode(rawValue: 204) Debug message: <IntuneMAMEnrollmentStatus: 0x11f981100> Error Domain: JWTSecurityTokenHandler Error Code: 100 Error Description: Failed to create token: token is not in the correct format. User Info: ["NSLocalizedDescription": Failed to create token: token is not in the correct format.]
same flow is working as expected in Chatr-Sample-Intune-iOS-App
Thanks for the update @gouravkumar1207 can you please provide me the diagnotic logs and the exact steps used to reproduce the issue you can send secuely to me at [email protected]
@gouravkumar1207 - Could you please confirm if you're still facing the issue?
Closing due to inactivity.