Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants