Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Android clipboard alerts #5486

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

christianbaroni
Copy link
Member

What changed (plus any additional context for devs)

  • Stops the constant clipboard alerts on Android (only present on Android 12 and higher)
  • Pasting now works the same way it does on iOS, with one caveat: unlike on iOS, on Android 12+, Clipboard.hasString() triggers an alert, so we skip that and instead read from the clipboard only when it's initiated by the user
  • Quickly tested on both platforms and found no issues, but did not test everywhere we have paste functionality

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Contributor

@walmat walmat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

legend. TYSM for this

@christianbaroni
Copy link
Member Author

Discussed with Bruno, seems like Socket is having issues and the reports above are unrelated to this PR

Copy link
Contributor

@skylarbarrera skylarbarrera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🫡

@christianbaroni christianbaroni merged commit 6853b79 into develop Mar 12, 2024
4 of 6 checks passed
@christianbaroni christianbaroni deleted the @christian/fix-android-clipboard-alerts branch March 12, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants