|
|
@ -46,7 +46,7 @@ public class PushNotificationBasedOperationManager implements OperationManager {
|
|
|
|
Activity activity = this.operationManager.addOperation(operation, devices);
|
|
|
|
Activity activity = this.operationManager.addOperation(operation, devices);
|
|
|
|
for (DeviceIdentifier deviceId : devices) {
|
|
|
|
for (DeviceIdentifier deviceId : devices) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
this.notificationProvider.execute(new NotificationContext(deviceId));
|
|
|
|
this.notificationProvider.execute(new NotificationContext(deviceId, operation));
|
|
|
|
} catch (PushNotificationExecutionFailedException e) {
|
|
|
|
} catch (PushNotificationExecutionFailedException e) {
|
|
|
|
throw new OperationManagementException("Error occurred while sending push notification to device", e);
|
|
|
|
throw new OperationManagementException("Error occurred while sending push notification to device", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|