how to change the default notification text that comes after disabling screenshot in android?

I disabled screenshot in android Nativescript(angular) and i receive a default message which says "Taking screenshots isn't allowed by the app or your organization". I would like to change this notification text.

Code:

if(isAndroid){
        const window = app.android.startActivity.getWindow();

        //@ts-ignore
        window.setFlags(
            android.view.WindowManager.LayoutParams.FLAG_SECURE,
            android.view.WindowManager.LayoutParams.FLAG_SECURE
        );

        
    }


Read more here: https://stackoverflow.com/questions/64890794/how-to-change-the-default-notification-text-that-comes-after-disabling-screensho

Content Attribution

This content was originally published by Abdullah at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: