Search code examples
android-management-api

Android Management API Google Playstore iFrame changes don't reflect on managed devices


I've noticed that in the embedded Google Play Store iFrame for my organization, that if I add apps to a collection that are approved, those apps don't show up different in either Whitelist or Blacklist play store mode. Where are these app collections supposed to be reflected on the managed devices? If I am in Whitelist mode, I was expecting that approved applications within the Google Play store iFrame would become available to the managed devices with a policy containing Whitelist mode. Is this not how it works?

Here is a really simple policy that we were using for testing:

{
            "name": "enterprises/ORGANIZATION/policies/Whitelist",
            "version": "18",
            "systemUpdate": {
                "type": "POSTPONE"
            },
            "addUserDisabled": true,
            "removeUserDisabled": true,
            "locationMode": "LOCATION_USER_CHOICE",
            "networkEscapeHatchEnabled": true,
            "playStoreMode": "WHITELIST"
        }

Solution

  • You need to make sure the apps you want to be included in the whitelist is added in your policies by using "installType: “Available”

    To simplify adding these applications to your policy, your solution should use the iFrame in SELECT mode as outline in the integration guide.

    Your policy should look like this

    {
     "name": "enterprises/ORGANIZATION/policies/Whitelist",
    "version": "18",
    "systemUpdate": {
    "type": "POSTPONE"
                    },
                    "addUserDisabled": true,
                 "removeUserDisabled": true,
                    "locationMode": "LOCATION_USER_CHOICE",
                    "networkEscapeHatchEnabled": true,
                    "playStoreMode": "WHITELIST",
                    "applications": [
                    {
                    "packageName": "com.linkedin.android",
                    "installType": "AVAILABLE"
                },
                {
                    "packageName": "com.android.chrome",
                    "installType": "AVAILABLE"
                 },
                {
                    "packageName": "com.dropbox.android",
                    "installType": "AVAILABLE"
                }
         ]
         }