Screenshot disable for Ionic Inappbrowser

I want to disable the screenshot in the ionic app which uses native inappBrowser.
I read the ionic documentation.
The thing which I understand is, In latest version of ionic, the screenshot is disabled by default. And we can take a screenshot by https://ionicframework.com/docs/native/screenshot

But I want to disable the screenshot from the app (ionic inaApBrowser).

I tried the plugin cordova-plugin-prevent-screenshot.
(<any>window).plugins.preventscreenshot.disable((a) => this.successCallback(a), (b) => this.errorCallback(b));
It gives a success message but still I am able to do the screenshot after this also.

@ionic-native/in-app-browser”: “^5.20.0”,