Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

HTML does not seem to work on Android 13 #20

Open
nicolaspernoud opened this issue May 29, 2023 · 0 comments
Open

HTML does not seem to work on Android 13 #20

nicolaspernoud opened this issue May 29, 2023 · 0 comments

Comments

@nicolaspernoud
Copy link

Hello, This plugin works fine for web, but on Android (13), this code

                    await RichClipboard.setData(RichClipboardData(
                      html: html,
                    ));

gives the following error :
E/MethodChannel#com.bringingfire.rich_clipboard( 9747): java.lang.IllegalArgumentException: Plain text must be supplied if HTML text is supplied
it the code is altered to be

                    await RichClipboard.setData(RichClipboardData(
                      text: html,
                      html: html,
                    ));

Only text is copied in the clipboard...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant