|
|
@ -46,7 +46,7 @@ public class AndroidPolicyMonitoringService implements PolicyMonitoringService {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void notifyDevices(List<Device> list) throws PolicyComplianceException {
|
|
|
|
public void notifyDevices(List<Device> list) throws PolicyComplianceException {
|
|
|
|
GCMService gcmService = MobileDeviceManagementDataHolder.getInstance().getGCMService();
|
|
|
|
GCMService gcmService = MobileDeviceManagementDataHolder.getInstance().getGCMService();
|
|
|
|
if (gcmService.isGCMEnabled()) {
|
|
|
|
if (gcmService.isGCMEnabled() && !list.isEmpty()) {
|
|
|
|
gcmService.sendNotification("POLICY_BUNDLE", list);
|
|
|
|
gcmService.sendNotification("POLICY_BUNDLE", list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|