• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/im/notification/task/pushnotification.php
  • Класс: BitrixTasksIntegrationIMNotificationTaskPushNotification
  • Вызов: PushNotification::getParams
public function getParams(NotificationTag $tag): array
{
	// user should be able to open the task window to see the changes ...
	// see /mobile/install/components/bitrix/mobile.rtc/templates/.default/script.js for handling details
	$params = [
		'ACTION' => 'tasks',
		'TAG' => $tag->getName(),
		'ADVANCED_PARAMS' => [],
	];

	$onAnswer = $this->notification->getParams()['NOTIFY_ANSWER'] ?? false;
	if ($onAnswer)
	{
		// ... and open an answer dialog in mobile
		$params['CATEGORY'] = 'ANSWER';
		$params['URL'] = SITE_DIR . 'mobile/ajax.php?mobile_action=task_answer';
		$params['PARAMS'] = [
			'TASK_ID' => $this->notification->getTask()->getId(),
		];
	}

	return $params;
}