capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

(camera) Multiple selection not working on some Android devices

Open dragermrb opened this issue 3 years ago • 0 comments

Bug Report

On android, method pickImages() (and pickImage() too) uses Intent.ACTION_PICK with extra data Intent.EXTRA_ALLOW_MULTIPLE set to true, but ACTION_PICK is not documented to support EXTRA_ALLOW_MULTIPLE.

Specifically:

Selecting multiple photos on some devices (Oppo/Realme for example) doesn't work.

Switch Intent.ACTION_PICK to Intent.ACTION_OPEN_DOCUMENT can solve the problem.

Plugin(s)

  • Camera

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 3.4.1
  @capacitor/core: 3.4.1
  @capacitor/android: 3.4.1
  @capacitor/ios: 3.4.1

Installed Dependencies:

  @capacitor/cli: 3.2.4
  @capacitor/core: 3.4.1
  @capacitor/ios: 3.4.1
  @capacitor/android: 3.4.1

Platform(s)

  • Android

Current Behavior

Selecting multiple photos on some devices (Oppo/Realme for example) doesn't work.

Expected Behavior

Selecting multiple photos on some devices (Oppo/Realme for example) does work.

Additional Context

  • Related Issue https://github.com/ionic-team/capacitor-plugins/issues/704
  • Related PR https://github.com/ionic-team/capacitor-plugins/pull/706

dragermrb avatar Feb 16 '22 12:02 dragermrb