moontreeapp / moontree

Primary Mono Repo
6 stars 5 forks source link

disable screenshot on backup #521

Closed lastmeta closed 2 years ago

lastmeta commented 2 years ago

Describe The Task

backup seed page - disable ability to take screenshot.

Additional Context

No response

lastmeta commented 2 years ago

https://stackoverflow.com/questions/52317217/flutter-disable-screenshot-capture-for-app android solution found using a package. everyone says this is impossible on iOS.

so for iOS we have 2 options.

  1. we can do what the above link says and disable it app-wide, maybe
  2. or we can maybe detect the screenshot as its happening and redraw the page to hide the keys, and we'll want to tell the user to write it down. see https://stackoverflow.com/questions/59452014/how-to-detect-user-screenshot-action-in-flutter

for option two we'll have to use this version of the package because the main branch is pinned to an old permission_handler version: https://github.com/flutter-moum/flutter_screenshot_callback/issues/48

lastmeta commented 2 years ago

meta stack — 05/02/2022 that is easy on android, but some say impossible on iOS [10:40 AM] so I was just thinking, I think it's possible to disable it app wide for iOS - would that be preferable to not disabling it at all? (edited)

WhaleStreet — 05/02/2022 I'll see what Metamask does

WhaleStreet — 05/02/2022 Yes disable app wide. [11:12 AM] Metamask let's you take a screenshot, lol

lastmeta commented 2 years ago

so we'll disable it app wide which, I'm sure will be easier than option 2 in the above above comment. I'll remove the flutter screenshot callback from the pubspec.yaml but if we ever want to explore that option the notes are here.