Xam.Plugin.Media wont work on Huawei devices

I am trying to capture a photo but the camera won't open on my device. Huawei P9 with the latest version of Android. I am also using the latest version of the package. The package is working on my other phone but not on my Huawei phone.

var cafNo = entCafNo.Text;

        await CrossMedia.Current.Initialize();

        if (!CrossMedia.Current.IsCameraAvailable || !CrossMedia.Current.IsTakePhotoSupported)
        {
            await DisplayAlert("No Camera", "No Camera Available", "Ok");
            return;
        }

        try
        {
            var file = await CrossMedia.Current.TakePhotoAsync(
                new StoreCameraMediaOptions
                {
                    SaveToAlbum = false,
                    Name = cafNo + "_IMG_01.png",
                    CompressionQuality = 80,
                    PhotoSize = PhotoSize.Medium
                }
            );

            entPhoto1Url.Text = file.Path;

            if (entPhoto1Url.Text != null)
            {
                btnCamera1.IsEnabled = false;
                btnCamera1.BackgroundColor = Color.FromHex("#27ae60");
                photovideovalidator.IsVisible = false;
            }
        }
        catch (Exception ex)
        {
            Console.Write(ex.Message);
        }