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: 6.0.1
Device Tested On:
Simulator Tested On: iPhone 11 iOS 14.0
Version of VS: Mac 8.7.8b4
Version of Xamarin: 6.18.0.23
Versions of other things you are using:
Steps to reproduce the Behavior
Ask user to access location.
Tap Allow While Using App.
Expected Behavior
Dialog disappears and app execution continues.
Actual Behavior
Dialog disappears but app hangs.
Code snippet
var locationPerm = await CrossPermissions.Current.CheckPermissionStatusAsync<LocationPermission>();
if (locationPerm != Plugin.Permissions.Abstractions.PermissionStatus.Granted)
{
//Executes
locationPerm = await CrossPermissions.Current.RequestPermissionAsync<LocationPermission>();
}
// Never executes
var cameraPerm = await CrossPermissions.Current.CheckPermissionStatusAsync<CameraPermission>();
if (cameraPerm != Plugin.Permissions.Abstractions.PermissionStatus.Granted)
{
cameraPerm = await CrossPermissions.Current.RequestPermissionAsync<CameraPermission>();
}
Screenshots
Same code works with xCode 11/iOS 13 and running on iOS 14 but built with xCode 11
I'm just now getting to the bottom of this. There are a lot of issues regarding iOS14, Xamarin and location permissions right now. Hope these get solved soon.
Bug Information
Version Number of Plugin: 6.0.1
Device Tested On:
Simulator Tested On: iPhone 11 iOS 14.0
Version of VS: Mac 8.7.8b4
Version of Xamarin: 6.18.0.23
Versions of other things you are using:
Steps to reproduce the Behavior
Expected Behavior
Dialog disappears and app execution continues.
Actual Behavior
Dialog disappears but app hangs.
Code snippet
Screenshots
Same code works with xCode 11/iOS 13 and running on iOS 14 but built with xCode 11
Might be related to https://medium.com/better-programming/handling-location-permissions-in-ios-14-2cdd411d3cca
The text was updated successfully, but these errors were encountered: