How To Set A Whitelist In Web View With Android Management Api
I am using Chrome Managed Configurations to set a whitelist with this code in my policy: { 'packageName': 'com.android.chrome', 'managedConfiguration': { 'URLBlackl
Solution 1:
You have to set the blacklist/whitelist for each app individually.
For example:
{
"packageName": "com.jetblue.JetBlueAndroid",
"managedConfiguration": {
'com.android.browser:URLBlacklist': ['*'],
'com.android.browser:URLWhitelist': ['jetblue.com']
}
}
This code blocks all domains within the JetBlue app besides for JetBlue.com
There are some things to be aware of: 1. Be careful not to block any domains the app needs to function (including login pages, etc.). 2. If an app uses a direct API to display content, not a web view, then these restrictions will not apply.
Post a Comment for "How To Set A Whitelist In Web View With Android Management Api"