Skip to content

Android : When app is minimized then still able to capture app content in android emulator #60

@a-raosaheb-gunjal

Description

@a-raosaheb-gunjal

Description : When app is minimized either it will disable screen capture or it will show white screen that hide's app content.

Steps to reproduce with react-native-screenshot-prevent libray in react native

  1. Install library with - npm i react-native-screenshot-prevent

  2. Implement with below methods in App.tsx i.e root level of app.

RNScreenshotPrevent.enabled(true);
RNScreenshotPrevent.enableSecureView();

    useEffect(() => {
        const subscription = addListener(() => { })
        return () => {
            subscription.remove();
        }
    }, [])

  1. Click on menu button. Just for example added chrome screenshot below. Similarly shows app content's when my app is in minimised mode.
Image
  1. Expected result - It should show white screen instead of app content or it should disable screenshot capture. Also when app is in foreground mode still able to capture screenshot on emulator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions