Best practice check list to make Android WebView Secure

前端 未结 1 1372
北恋
北恋 2021-01-13 00:55

I am working on an application which is largely written in Native and supporting Ice Cream Sandwich. However, I need to add some WebViews. There are lots of discussions on W

相关标签:
1条回答
  • 2021-01-13 01:25

    As per doc,

    To enable Safe Browsing for all WebViews in your app, add in a manifest tag:

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

    Because WebView is distributed as a separate APK, Safe Browsing for WebView is available today for devices running Android 5.0 and above. With just one added line in your manifest, you can update your app and improve security for most of your users immediately.

    0 讨论(0)
提交回复
热议问题