Skip to content

Clipboard.read() returns empty, type string when in clipboard is an image #2380

@armandn

Description

@armandn

Bug Report

Plugin(s)

@capacitor/clipboard: 7.0.1,

Capacitor Version

Installed Dependencies:

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

Platform(s)

Android, iOS

Current Behavior

If I copy an image from the web browser and try to read it with Clipboard.read(), on Android, the result is an object like this: {type: "text/plain", value: ""}.

On iOS, it looks like the type is text, value is the image URL.

Expected Behavior

I expect the value to be a base64 string, or image blob.

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions