Xamarin Asking Permission Dialog not pop up in Android API 33

I have an issue for Xamarin App. The problem is about the dialog for asking permission. With the same code, for API 33 the dialog is not showing. But for API 31 it appears.

PermissionStatus storageStatus = await CrossPermissions.Current.CheckPermissionStatusAsync(Permission.Storage);

if (storageStatus != PermissionStatus.Granted)
{
    Dictionary<Permission, PermissionStatus> results = null;
    if (Device.RuntimePlatform == Device.Android)
    {
        await _FileHelper.ShowSnackbar("AppName requires permission to access and save reports.");
        results = await CrossPermissions.Current.RequestPermissionsAsync(new[] { Permission.Storage });
    }
    else
        results = await CrossPermissions.Current.RequestPermissionsAsync(new[] { Permission.Storage });

    storageStatus = results[Permission.Storage];
}

Below dialog example for API 31:

My app doesn’t have an issue about permission, but my concern is where did the alert go? Any explanation for that? See my code bellow.

MainActivity.cs

protected override void OnCreate(Bundle bundle)
{ 
    CurrentActivity = this;
    base.OnCreate(bundle);
    CrossCurrentActivity.Current.Activity = this;

    App.ScreenHeight = (int)(Resources.DisplayMetrics.HeightPixels / Resources.DisplayMetrics.Density);
    App.ScreenWidth = (int)(Resources.DisplayMetrics.WidthPixels / Resources.DisplayMetrics.Density);

    Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(this, bundle);

    global::Xamarin.Forms.Forms.Init(this, bundle);
    Xamarin.Essentials.Platform.Init(this, bundle);

    OxyPlot.Xamarin.Forms.Platform.Android.PlotViewRenderer.Init();
    
    AllFileSystemPermission allFileSystemPermission = new AllFileSystemPermission();
    allFileSystemPermission.RequestAsync();
    
    LoadApplication(new App());
}

public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)
{  
    PermissionsImplementation.Current.OnRequestPermissionsResult(requestCode, permissions, grantResults);
    base.OnRequestPermissionsResult(requestCode, permissions, grantResults); 
}

Manifest File:

<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="33" />
<application android:label="AppName" android:icon="@drawable/icon">
    <provider 
        android:name="android.support.v4.content.FileProvider" 
        android:authorities="com.qdi.appname.android.fileprovider" 
        android:exported="false" 
        android:grantUriPermissions="true">
        <meta-data 
            android:name="android.support.FILE_PROVIDER_PATHS" 
            android:resource="@xml/provider_paths" />
    </provider>
</application>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>

<queries>
    <intent>
        <action android:name="android.media.action.IMAGE_CAPTURE" />
    </intent>
</queries>

I also followed this github about the same issue, but in this case I don’t get it about the dialog issue. They did not talk about the dialog. Yes the github post helps to maintain the permission but how the dialog? If I open the settings -> app -> and go to my app -> then permission -> allow media file access then everything will be fine. But what I wanted is the dialog.

I have done:

  1. Using File Provider (not necessary just FYI)
  2. Add new permission which is READ_MEDIA_IMAGES and READ_MEDIA_VIDEO
  3. Extend Permissions.BasePermission by following this link

Also by this link, there is some code that I stubble upon. Why if more than BuildVersionCodes.R there is an intent to Settings as below

var intent = new Intent(Android.Provider.Settings.ActionManageAllFilesAccessPermission);
intent.AddCategory(Android.Content.Intent.CategoryDefault);
intent.SetData(Android.Net.Uri.Parse($"package:{Platform.AppContext.PackageName}"));
Platform.CurrentActivity.StartActivity(intent);

Where is the dialog?

Any advice? Thanks in advance.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật