Can we restrict screen capture using secure flag for chrome custom tab in android?

559 views Asked by At

I am using chrome custom tab to display data in one screen. But data is sensitive and need to protect it by disabling screen capture functionality of devices. It would be great help if any one could explain me how can I achieve this requirement for custom chrome tabs. Thanks in advance.

2

There are 2 answers

0
andreban On

It's not currently possible. The reason is that the Custom Tab runs in the browser process, not the host app process.

0
Martin Zeitler On

Screenshots are disabled by default, but only when launching the tab in incognito mode.
Chrome must have been built with allow_incognito_custom_tabs_from_third_party.