I
I
ilya_chuiko2020-10-16 10:00:55
iOS
ilya_chuiko, 2020-10-16 10:00:55

How to track screenshot event on ios in flutter app?

It is necessary to block the ability to take screenshots in the application. On ios, blocking screenshots is not possible, but it is possible to catch the event of taking screenshots and replace the screen itself (according to official information).

The question is, is there a real possibility without native code to catch this event and change the contents of the screenshot?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alexandrovich, 2020-10-16
@RomReed

as an option to catch a screenshot, you can use this library https://pub.dev/packages/screenshot_callback

import 'package:screenshot_callback/screenshot_callback.dart';

ScreenshotCallback screenshotCallback = ScreenshotCallback();

screenshotCallback.addListener(() {
  //Void funtions are implemented
  print('detect screenshot');
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question