You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
Version Number of Plugin: 3.0.0.12
Device Tested On:
Simulator Tested On: LATICRETE_MobileApp.UWP (Universal Windows)
Version of VS: VS 2017 version 15.9.15
Version of Xamarin: Xamarin.Forms version 4.2.0.709249
Versions of other things you are using:
Steps to reproduce the Behavior
Call CrossPermissions.Current.CheckPermissionStatusAsync() anywhere in the shared project:
This does not happen when I run in the native MainPage.xaml.cs: var accessStatus = CheckLocationAsync();
where CheckLocationAsync is
` private async System.Threading.Tasks.Task<Plugin.Permissions.Abstractions.PermissionStatus> CheckLocationAsync()
{
var accessStatus = await Windows.Devices.Geolocation.Geolocator.RequestAccessAsync();
switch (accessStatus)
{
case Windows.Devices.Geolocation.GeolocationAccessStatus.Allowed:
return Plugin.Permissions.Abstractions.PermissionStatus.Granted;
case Windows.Devices.Geolocation.GeolocationAccessStatus.Unspecified:
return Plugin.Permissions.Abstractions.PermissionStatus.Unknown;
}
return Plugin.Permissions.Abstractions.PermissionStatus.Denied;
}
`
Android and iOS have no problems.
The text was updated successfully, but these errors were encountered:
Bug Information
Version Number of Plugin: 3.0.0.12
Device Tested On:
Simulator Tested On: LATICRETE_MobileApp.UWP (Universal Windows)
Version of VS: VS 2017 version 15.9.15
Version of Xamarin: Xamarin.Forms version 4.2.0.709249
Versions of other things you are using:
Steps to reproduce the Behavior
Call CrossPermissions.Current.CheckPermissionStatusAsync() anywhere in the shared project:
Expected Behavior
Should return the status
Actual Behavior
Throws an Exception "Server execution failed"
Code snippet
`
PermissionStatus permissionStatus = PermissionStatus.Unknown;
This does not happen when I run in the native MainPage.xaml.cs:
var accessStatus = CheckLocationAsync();
where CheckLocationAsync is
` private async System.Threading.Tasks.Task<Plugin.Permissions.Abstractions.PermissionStatus> CheckLocationAsync()
{
var accessStatus = await Windows.Devices.Geolocation.Geolocator.RequestAccessAsync();
`
Android and iOS have no problems.
The text was updated successfully, but these errors were encountered: