- Home /
Input.location.isEnabledByUser returning wrong value iOS
I have been working with the location services tools in unity and have noticed that Input.location.isEnabledByUser always returns true even if the user has disabled it in settings. Also if the user has disabled location services in settings then the app requests location information the native dialog to re-enable location services is never displayed and the status stays LocationServiceStatus.Failed.
After looking around I found another post on the topic but NO resolution. http://forum.unity3d.com/threads/165437-Input-location-isEnabledByUser-is-always-true
I need to be able to re-prompt the user to enable location services per the standard system dialog.
This is all in direct contrast to what one would expect after reviewing the documentation of the isEnabledByUser flag which explicitly notes the flag is a representation of the users location service choice for this app. http://docs.unity3d.com/Documentation/ScriptReference/LocationService-isEnabledByUser.html
Any help or pointers would be AWESOME!!! Thanks
I'm guessing the iOS and Android policies are 'User Discretion' on things like this, so iOS/Android settings will always be able to override the calls put out by Unity. Again guessing, if you exported the project and linked to native functionality of iOS APIs it probably couldn't be overriden.
Just chewing gum. Have you submitted a bug report? $$anonymous$$aybe place it on the forum.
I have not submitted a bug report. I felt like someone else would definitely have seen this and possibly found a work around by now. If no one is able to help me I will file one.
Your answer
![](https://koobas.hobune.stream/wayback/20220613115935im_/https://answers.unity.com/themes/thub/images/avi.jpg)