Translate this page

Fix Android Webview is Vulnerable to Cross app Scripting GooglePlay Warning

How to Fix Webview is vulnerable to cross app scripting Error Google Play Warning in Android Studio

Have you faced this warning in your google play development console? That’s because your app has a Webview that is not safe for the users.

If Webview isn’t safe, attackers can steal data such as cookies of users, card details, login details etc, so as a developer, it is our responsibility to ensure that data of our users are safe when they are using our apps.

Fixing the Android Webview is vulnerable to cross scripting Error

There are some options to fix this issue, It is easy to fix this error

Update: If you are converting your website to android app using Webview, check out our Advanced Plus Webview Source code, It is the easiest and powerful Webview source code that you can use to convert website to app in less than 30 mins. check it out here

Option A:

Go to the android Manifest, and if the web activity has the “android:exported=”true“, “Change it to “android:exported=”false

This is the google recommended way to fix the problem, but this is not useful for your app if it needs receive data from external apps. in that case, we will try option B

Option B:

Go to the manifest, and add the following lines in the Webview activity, see the screenshot to get a clear understanding

<meta-data android:name="android.webkit.WebView.EnableSafeBrowsing"
android:value="true" />


That’s it. Let me know in the comments if this fixed your issue

Related Posts

Here is How to Get Host Domain from URL in Android Java

Sometimes, we might need extract domain name such as from the In android java, the code below can do it. It will output only the…

Android SoftKeyBoard Enter Key Handling

How to Handle Android Keyboard’s Enter Key to Support your Own Function By default, android soft keyboard’s enter key doesn’t support your own function even if you…

Test Intent and URL Schemes of Android Webview

URL Schemes Tester This page contains different URL Schemes that can be used to test various URL Schemes, it was created to test android webview, but other…

Realme XT Specifications, Launch Date, Price and Details

Realme xt details, launch date and reviews The Realme XT is an android smartphone with a massive 64 Mega pixels camera and qualcomm snapdragon 712 processor. Brand…

How to Copy a Webview Link in Android Java

Here is how to Copy current web address url in Android Java With the simple java code below, you can copy a link of current loaded website…

How to get Android App Version Programmatically in Java Android Studio

Here is how to get android app current version code programmatically in java android Sometimes, you will need get the current version number of your android app…

This Post Has 4 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *