capacitor-plugins
capacitor-plugins copied to clipboard
(camera) Multiple selection not working on some Android devices
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:
- The documentation for ACTION_PICK does not mention any supported extras
- The documentation for EXTRA_ALLOW_MULTIPLE only mentions ACTION_GET_CONTENT and ACTION_OPEN_DOCUMENT
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