Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was 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

@quomat

Description

@quomat

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions