SoftHolyic
SoftHolyic

Reputation: 21

Android Management not working but it enrolls the devices

I'm trying to develop an internal EMM console, at first it seemed like everything worked fine but after further inspection we noticed that the enrolled device(via QR code) was not downloading the apps specified on the policy and when you call the list function we get {} instead of the device we just enrolled, I even went back to the quick start guide but it's only failing. Is there anything we're missing?? the device is running 8.1.0

Upvotes: 2

Views: 404

Answers (1)

Dave Paurillo
Dave Paurillo

Reputation: 231

It could be that the device failed to provision and the policy never reached the device, which results in the apps not being installed. You can check if the device is provisioned if there is a “Device Policy” section under Settings > Google.

Another way to check is by using Devices.list(). If it is enrolled, Devices.list() also returns nonComplianceDetails which provides details why the app is not installed. For example, if the app is not installed due to an application not being available in your country. The return value of Devices.list() or Devices.get() will contain something like this:

 'nonComplianceDetails': [{'installationFailureReason': 'NOT_AVAILABLE_IN_COUNTRY',
   'nonComplianceReason': 'APP_NOT_INSTALLED',
   'packageName': 'com.sample.app',
   'settingName': 'applications'}],

Also, it might be helpful if you can tell what is exactly failing in the quickstart guide and what policy you are setting.

Upvotes: 1

Related Questions