Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
IsGeolocationAvailable and IsGeolocationEnabled both return true, even though the app has been denied location permissions on MonoTouch.
- Press Allow when the app asks if you can use location services
- Go into settings and disable that app's specific location privilege
Both properties now return true which is incorrect.
I can confirm that this is also a bug on Mono for Android.
The cell and gps has been switched off yet IsGeolocationAvailable and IsGeolocationEnabled both erroneously return true.
(In reply to comment #1)
> I can confirm that this is also a bug on Mono for Android.
> The cell and gps has been switched off yet IsGeolocationAvailable and
> IsGeolocationEnabled both erroneously return true.
Can you check that wireless network support is also disabled? This is likely what's reporting it as enabled.
On MonoTouch (with wifi on or off):
- Location Services are switched on
- The specific app's location services are toggled off in the Location Services settings page
When the MonoTouch app runs IsGeolocationAvailable and IsGeolocationEnabled both return true which I don't think is right.
(In reply to comment #4)
> On MonoTouch (with wifi on or off):
> - Location Services are switched on
> - The specific app's location services are toggled off in the Location
> Services settings page
> When the MonoTouch app runs IsGeolocationAvailable and IsGeolocationEnabled
> both return true which I don't think is right.
Yes, that's confirmed, I was responding to your comment regarding MfA.
With regards to MfA,
I can confirm that with both the
- wireless networks and
- GPS satelites
are disabled on the android phone. The IsGeolocationAvailable and IsGeolocationEnabled are still both true with these settings disabled.
FYI, IsGeolocationAvailable is generally always going to be true, it just states that there is a method for obtaining location on the device. IsGeolocationEnabled is where the bug is.
The reason this is showing true is that the "passive" location provider is always available. This doesn't really fit into the use case scenario here and is more of a specialized Android feature, I will exclude the passive provider which will result in the expected behavior.
This is fixed, and the update is available: http://xamarin.com/mobileapi