ms-intune-app-sdk-ios icon indicating copy to clipboard operation
ms-intune-app-sdk-ios copied to clipboard

Getting IntuneMAMEnrollmentStatusLocationServiceFailure error alert for users

Open heena-dhawan-eptura opened this issue 1 year ago • 1 comments

Describe the bug: Users are getting alert for IntuneMAMEnrollmentStatusLocationServiceFailure.

To Reproduce Steps to reproduce the behavior:

  1. User logs into Intune
  2. and sees an alert

Expected behavior: User should be able to login ang get policies

Screenshots and logs: Screenshot 2024-06-12 at 12 29 34 PM

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

heena-dhawan-eptura avatar Jun 12 '24 07:06 heena-dhawan-eptura

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

ChismanRaheem avatar Jun 13 '24 13:06 ChismanRaheem

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

gouravkumar1207 avatar Feb 18 '25 05:02 gouravkumar1207

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]

ChismanRaheem avatar Feb 18 '25 09:02 ChismanRaheem

Image

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 CFBundleURLName MSNLprojectTest CFBundleURLSchemes

            <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

gouravkumar1207 avatar Feb 18 '25 10:02 gouravkumar1207

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 avatar Feb 18 '25 22:02 ChismanRaheem

@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

gouravkumar1207 avatar Feb 19 '25 06:02 gouravkumar1207

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]

ChismanRaheem avatar Feb 21 '25 14:02 ChismanRaheem

@gouravkumar1207 - Could you please confirm if you're still facing the issue?

pmod2 avatar Aug 12 '25 00:08 pmod2

Closing due to inactivity.

pmod2 avatar Sep 16 '25 21:09 pmod2