JagandeepBrar / lunasea

Self-hosted software controller built using Flutter
https://www.lunasea.app
GNU General Public License v3.0
1.31k stars 64 forks source link

[Bug] Constant "pasting" notification with input fields in iOS 14 #222

Closed JagandeepBrar closed 4 years ago

JagandeepBrar commented 4 years ago

Describe the Bug iOS 14 has introduced a new privacy feature which shows a notification for a user when the content from the pasteboard has been read by the application. This notification is constantly triggered on each widget rebuild (initial load, each new character entered).

To Reproduce Run LunaSea on iOS 14.

Expected Behaviour LunaSea at no point directly reads from the clipboard, so this notification should never appear unless a user explicitly pastes content from their clipboard in an input field.

Versions Tested on: v3.0.0 (300003)

Additional context

As mentioned, LunaSea at no point directly reads from the clipboard itself, but this is a problem with the Flutter framework. This issue has been reported to the Flutter team, and will likely be fixed before iOS 14's release: https://github.com/flutter/flutter/issues/60145

JagandeepBrar commented 4 years ago

A temporary workaround to stop the annoying notification on actively refreshing pages (such as the clients, which refresh every couple of seconds) is to use the new copy text feature for text preview dialogs. Enter something like a show in Sonarr and copy the path, it will stop the notification from appearing anymore (until you copy text from outside of LunaSea again).

This is obviously non-ideal, still waiting on the Flutter team to update the framework.

JagandeepBrar commented 4 years ago

This appears to have been solved in a recent Flutter update, so I will be closing this issue for now. If it reoccurs, it will be reopened.