I use the php REST API.
When trying notifications using the following code:
$task_id = $task->get_task_id();
$human_id = $the_other_human["human_id"];
$alert = "Autoriza a $name a conocer su ubicacion actual?";
$should_launch_task = 0;
$params = array(
"task_id" => $task_id,
"human_id" => $human_id,
"alert" => $alert ,
"should_launch_task " => $should_launch_task
);
$task->get_app()->call_api("notification/send", $params);
I get nothing: the code is executed but nothing seems to be happening.
I expect an event being fired in the_other_humen's session.
Something is not working or I am bnot understanding how to do it.
Can sb help me?