Forum Xamarin.Android

Plugin.Permission

GlennErlerGlennErler USMember ✭✭✭
edited January 26 in Xamarin.Android

Trying to use the Plugins.Persmissions to check permissions. I reference the the plugin but there are no permissions. I call
crossPermissions.Current.CheckPermissionStatusAsync\<MircrophonePermission>();

MicrophonePermission class is not present.
I did download the sample project and the classes are there
????
Not sure what I am missing ?

Answers

  • LeoZhuLeoZhu Member ✭✭✭

    var status = await CrossPermissions.Current.CheckPermissionStatusAsync<MicrophonePermission>(); it has no indication that MicrophonePermission class is not present on my side,try to reinstall the Plugins.Persmissions NugetPackage,and rebuild the project

  • GlennErlerGlennErler USMember ✭✭✭

    Thanks for the reply. This package has issues.
    1. I had installed the current Nuget package. No Permission classes. Removed & reinstalled package..no changes.
    2. Installed the most recent beta package. NOW I now had permission classes. BUT other references to permissions where to where they where supposed to be!!>??

    The documentation code does not work, for me at least.
    I did get it to work though
    I dont have the time to go thru the source code at this time to give an answer
    This is a important and very useful package

Sign In or Register to comment.