Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

[Bug] FilePicker doesn't work on Redmi phones with MIUI 12, Android 11, workaround available #2085

Open
quomat opened this issue Apr 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@quomat
Copy link

quomat commented Apr 12, 2023

Description

Steps to Reproduce

  1. Lanuch EssentialsSample on a phone with MIUI 12 interface, like Redmi 8.
  2. Use the file picker, pick a file

Expected Behavior

The path to the file is shown

Actual Behavior

The operation appears cancelled

Basic Information

  • Version with issue:
  • Platform Target Frameworks:
    • Android: 11
  • Nuget Packages:
  • Affected Devices: Xiaomi

The issue is known around some places, please see this issue on Android Image Cropper app and this Stackoverflow question.

MIUI interface appears to ignore the result when using createChooser. I tested the repo locally and if I comment out this line:

var pickerIntent = Intent.CreateChooser(intent, options?.PickerTitle ?? "Select file");

it works perfectly. Of course, this is not a solution, because users want to use their own apps for picking files - but on Xiaomi it's better than nothing.

How about putting the workaround for MIUI devices, for example using the method from here?

I can do the pull request, but will it be merged?

Thanks!

@quomat quomat added the bug Something isn't working label Apr 12, 2023
@quomat quomat changed the title [Bug] [Bug] FilePicker doesn't work on Redmi phones with MIUI 12, Android 11, workaround available [Bug] FilePicker doesn't work on Redmi phones with MIUI 12, Android 11, workaround available Apr 12, 2023
@BDemetrix
Copy link

A year has already passed, but the error has not been fixed!
This is very sad for such a popular package and a large number of Xiaomi devices!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants